oleksii-novikov-onix commented on code in PR #4244:
URL: https://github.com/apache/fineract/pull/4244#discussion_r1927094640


##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/calc/ProgressiveEMICalculator.java:
##########
@@ -778,6 +785,13 @@ public Money 
getSumOfDueInterestsOnDate(ProgressiveLoanInterestScheduleModel sch
                 .reduce(scheduleModel.zero(), Money::add); //
     }
 
+    @Override
+    public void applyInterestPause(final ProgressiveLoanInterestScheduleModel 
scheduleModel, final LocalDate fromDate,
+            final LocalDate endDate, final BigDecimal newInterestRate) {
+        scheduleModel.updateInterestPeriodsWithInterestPause(fromDate, 
endDate, scheduleModel.zero(), scheduleModel.zero())
+                .forEach(repaymentPeriod -> 
calculateRateFactorsForInterestPause(scheduleModel));

Review Comment:
   I have updated it. Now, 
`scheduleModel.updateInterestPeriodsWithInterestPause` returns an Optional with 
the first affected period. Additionally, I added a new argument, `startDate`, 
to the `calculateRateFactorsForInterestPause` method.



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