FINERACT-2211: Fix-Incorrect LoanSchedule after Full Refund with LAST_INSTALLMENT rule on 12m interest bearing Term loan

This commit is contained in:
Adam Saghy
2025-03-12 15:00:14 +00:00
parent a28b9332b9
commit 4ea0acdcf1
3 changed files with 115 additions and 16 deletions
@@ -1063,4 +1063,9 @@ public class LoanRepaymentScheduleInstallment extends AbstractAuditableWithUTCDa
return DateUtils.isAfter(referenceDate, getFromDate()) && !DateUtils.isAfter(referenceDate, getDueDate());
}
public boolean isDueBalanceZero() {
return MathUtil.isZero(
MathUtil.nullToZero(MathUtil.add(getPrincipal(), getInterestCharged(), getFeeChargesCharged(), getPenaltyCharges())));
}
}