adamsaghy commented on code in PR #4132:
URL: https://github.com/apache/fineract/pull/4132#discussion_r1820699544
##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/ProgressiveLoanScheduleGenerator.java:
##########
@@ -281,7 +281,7 @@ public OutstandingAmountsDTO
calculatePrepaymentAmount(MonetaryCurrency currency
.interest(result.getPayableInterest());
installments.forEach(installment -> amounts //
- .plusFeeCharges(installment.getFeeChargesOutstanding(currency))
+
.plusInterest(installment.getInterestOutstanding(currency)).plusFeeCharges(installment.getFeeChargesOutstanding(currency))
Review Comment:
We should only consider the outstanding interest from past due installment.
During pay-off / prepayment we dont want the customer to pay future interests.
--
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]