MarianaDmytrivBinariks commented on code in PR #5317:
URL: https://github.com/apache/fineract/pull/5317#discussion_r2717392127
##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/calc/ProgressiveEMICalculator.java:
##########
@@ -530,6 +530,34 @@ public Money getPeriodInterestTillDate(@NotNull
ProgressiveLoanInterestScheduleM
recalculatedScheduleModelTillDate.mc());
}
+ @Override
+ public Money calculateInterestForAccelerateMaturity(final
ProgressiveLoanInterestScheduleModel scheduleModel,
+ final RepaymentPeriod lastPeriod, final List<RepaymentPeriod>
periodsToRemove, final LocalDate transactionDate) {
+ final boolean hasReAgedInterest = hasReAgedInterest(lastPeriod,
periodsToRemove);
+
+ if (hasReAgedInterest) {
+ final Money futureInterest =
periodsToRemove.stream().map(RepaymentPeriod::getDueInterest).reduce(scheduleModel.zero(),
Review Comment:
done
##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/impl/AdvancedPaymentScheduleTransactionProcessor.java:
##########
@@ -2120,6 +2123,12 @@ private void handleAccelerateMaturityDate(final
LoanTransaction loanTransaction,
loanSchedule.updateLoanSchedule(loan,
installmentsUpToTransactionDate);
+ final boolean hasReAgedInstallments = currentInstallment.isReAged()
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]