adamsaghy commented on code in PR #5317:
URL: https://github.com/apache/fineract/pull/5317#discussion_r2705101876


##########
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:
   No, this is cannot be true for accelerate maturity date charge-off. We 
should not consider the future interest. Only the past due (including the 
reaged interest).



-- 
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]

Reply via email to