FINERACT-1971: Loan totalUnpaidPayableNotDueInterest field has wrong value after maturity

This commit is contained in:
Jose Alberto Hernandez
2025-01-29 10:16:30 +01:00
committed by Adam Saghy
parent 093054b3db
commit 15fcaed61f
3 changed files with 64 additions and 0 deletions
@@ -80,6 +80,9 @@ public class ProgressiveLoanSummaryDataProvider extends CommonLoanSummaryDataPro
@Override
public BigDecimal computeTotalUnpaidPayableNotDueInterestAmountOnActualPeriod(final Loan loan,
final Collection<LoanSchedulePeriodData> periods, final LocalDate businessDate, final CurrencyData currency) {
if (loan.isMatured(businessDate)) {
return BigDecimal.ZERO;
}
LoanRepaymentScheduleInstallment loanRepaymentScheduleInstallment = getRelatedRepaymentScheduleInstallment(loan, businessDate);
if (loan.isInterestBearing() && loanRepaymentScheduleInstallment != null) {