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


##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/calc/ProgressiveEMICalculator.java:
##########
@@ -1078,9 +1084,13 @@ private void 
calculateLastUnpaidRepaymentPeriodEMI(ProgressiveLoanInterestSchedu
 
         findLastUnpaidRepaymentPeriod.ifPresent(repaymentPeriod -> {
             
repaymentPeriod.setFutureUnrecognizedInterest(scheduleModel.zero());
-            scheduleModel.repaymentPeriods().forEach(rp -> {
-                rp.setInterestMoved(false);
-            });
+            scheduleModel.repaymentPeriods().stream().filter(rp -> 
!rp.isReAgedEarlyRepaymentHolder())
+                    .forEach(rp -> rp.setInterestMoved(false));
+
+            if (repaymentPeriod.getFixedInterest().isZero()) {

Review Comment:
   @mariiaKraievska Why do we need this condition?



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