FINERACT-1981: fix progressive accruals on late repayment

This commit is contained in:
adam.magyari
2025-02-04 11:47:52 +01:00
committed by Adam Saghy
parent 0b9687d2aa
commit 157a492bcc
5 changed files with 220 additions and 7 deletions
@@ -721,6 +721,18 @@ public class LoanRepaymentScheduleInstallment extends AbstractAuditableWithUTCDa
this.penaltyAccrued = MathUtil.zeroToNull(MathUtil.toBigDecimal(penalityCharges));
}
public void setInterestAccrued(BigDecimal interestAccrued) {
this.interestAccrued = interestAccrued;
}
public void setFeeAccrued(BigDecimal feeAccrued) {
this.feeAccrued = feeAccrued;
}
public void setPenaltyAccrued(BigDecimal penaltyAccrued) {
this.penaltyAccrued = penaltyAccrued;
}
public void updateObligationsMet(final MonetaryCurrency currency, final LocalDate transactionDate) {
if (!this.obligationsMet && getTotalOutstanding(currency).isZero()) {
this.obligationsMet = true;