FINERACT-2181: Update outstandingBalance when the LoanInterestRecalculationCOBBusinessStep of COB job is executed

This commit is contained in:
mariiaKraievska
2025-06-18 12:23:24 +02:00
committed by Adam Saghy
parent 2644981424
commit 38a5686df8
3 changed files with 42 additions and 0 deletions
@@ -2428,6 +2428,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
} else {
loanScheduleService.recalculateScheduleFromLastTransaction(loan, null, existingTransactionIds, existingReversedTransactionIds,
true);
loanBalanceService.updateLoanSummaryDerivedFields(loan);
loan = saveAndFlushLoanWithDataIntegrityViolationChecks(loan);
businessEventNotifierService.notifyPostBusinessEvent(new LoanInterestRecalculationBusinessEvent(loan));
}