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


##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/calc/ProgressiveEMICalculator.java:
##########
@@ -175,6 +181,10 @@ public PayableDetails getPayableDetails(final 
ProgressiveLoanInterestScheduleMod
             interestPeriod = repaymentPeriod.getInterestPeriods().stream()
                     .filter(ip -> targetDate.isAfter(ip.getFromDate()) && 
!targetDate.isAfter(ip.getDueDate())).findFirst().orElseThrow();
         }
+
+        // we should calculate accrual this part before adjust the interest 
period due date
+        final BigDecimal dailyAccrual = includeAccrual ? 
getOneDayAccrual(scheduleModelCopy, interestPeriod) : BigDecimal.ZERO;

Review Comment:
   Its rather daily interest than accrual... :/



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