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
@@ -2666,6 +2666,10 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom<Long> {
return this.actualMaturityDate;
}
public boolean isMatured(final LocalDate referenceDate) {
return (this.actualMaturityDate != null) ? (referenceDate.compareTo(this.actualMaturityDate) >= 0) : false;
}
public ChangedTransactionDetail processTransactions() {
final LoanRepaymentScheduleTransactionProcessor loanRepaymentScheduleTransactionProcessor = getTransactionProcessor();
final List<LoanTransaction> allNonContraTransactionsPostDisbursement = retrieveListOfTransactionsForReprocessing();