FINERACT-2421: Manual interest refund on closed loan generates exception

This commit is contained in:
Jose Alberto Hernandez
2026-01-23 14:00:49 +01:00
committed by Adam Saghy
parent 8b24325f84
commit fb96df64ab
2 changed files with 112 additions and 0 deletions
@@ -3016,6 +3016,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
loanAccrualsProcessingService.reprocessExistingAccruals(loan, true);
loanAccrualsProcessingService.processIncomePostingAndAccruals(loan, true);
}
loanLifecycleStateMachine.determineAndTransition(loan, interestRefundTxn.getTransactionDate());
loan = saveAndFlushLoanWithDataIntegrityViolationChecks(loan);
loanAccountDomainService.setLoanDelinquencyTag(loan, transactionDate);