adamsaghy commented on code in PR #5153:
URL: https://github.com/apache/fineract/pull/5153#discussion_r2537391586
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/ProgressiveLoanSummaryDataProvider.java:
##########
@@ -83,7 +83,9 @@ public BigDecimal
computeTotalUnpaidPayableNotDueInterestAmountOnActualPeriod(fi
Optional<LoanRepaymentScheduleInstallment> currentRepaymentPeriod =
getRelatedRepaymentScheduleInstallment(loan, businessDate);
if (currentRepaymentPeriod.isPresent()) {
- if (loan.isChargedOff() ||
loan.hasContractTerminationTransaction()) {
+ if (loan.isChargedOff()) {
+ return
currentRepaymentPeriod.get().getInterestOutstanding(loan.getCurrency()).getAmount();
+ } else if (loan.hasContractTerminationTransaction()) {
Review Comment:
@alberto-art3ch I think the same shall apply to contract termination.
Charge-off and Contract termination is quite similar in this case.
--
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]