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


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/CommonLoanSummaryDataProvider.java:
##########
@@ -157,7 +157,7 @@ private static BigDecimal 
fetchLoanTransactionBalanceReversedByType(
 
     @Override
     public BigDecimal 
computeTotalUnpaidPayableDueInterestAmount(Collection<LoanSchedulePeriodData> 
periods, final LocalDate businessDate) {
-        return periods.stream().filter(period -> !period.isDownPaymentPeriod() 
&& !businessDate.isBefore(period.getDueDate()))
+        return periods.stream().filter(period -> !period.isDownPaymentPeriod() 
&& !period.getDueDate().isAfter(businessDate))

Review Comment:
   @alberto-art3ch This cannot be right... on the due date it shall be part of 
the unpaid, payable, due interest amount.



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