FINERACT-2148: Backdated Charge-off with interest recalculation

This commit is contained in:
Adam Saghy
2024-12-06 16:49:55 +01:00
parent a2c01d25e5
commit 3490219577
7 changed files with 102 additions and 37 deletions
@@ -1187,7 +1187,7 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom<Long> {
doPostLoanTransactionChecks(getLastUserTransactionDate(), loanLifecycleStateMachine);
}
public boolean isInterestRecalculationEnabledForProduct() {
private boolean isInterestRecalculationEnabledForProduct() {
return this.loanProduct.isInterestRecalculationEnabled();
}
@@ -2647,6 +2647,10 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom<Long> {
return BigDecimal.ZERO.compareTo(getLoanRepaymentScheduleDetail().getAnnualNominalInterestRate()) < 0;
}
public boolean isInterestRecalculationEnabled() {
return this.loanRepaymentScheduleDetail.isInterestRecalculationEnabled();
}
public LocalDate getMaturityDate() {
return this.actualMaturityDate;
}