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


##########
fineract-working-capital-loan/src/main/java/org/apache/fineract/portfolio/workingcapitalloan/service/WorkingCapitalLoanBreachScheduleServiceImpl.java:
##########
@@ -159,7 +159,9 @@ public void applyRepayment(final Long loanId, final 
LocalDate transactionDate, f
             return;
         }
         applyRepayment(currentPeriod.get(), amount, loanId);
-        recalculatePastDueAmount(loanId);
+        if 
(!currentPeriod.get().getToDate().isAfter(DateUtils.getBusinessLocalDate())) {

Review Comment:
   minor: you might want to extract into a method, since it is used 2 places...



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