FINERACT-2220: Use stored ProgressiveLoanInterestScheduleModel for Periodic Accrual Calculation

This commit is contained in:
Soma Sörös
2025-04-30 13:29:29 +02:00
committed by Adam Saghy
parent 0563311251
commit 071592eceb
4 changed files with 63 additions and 6 deletions
@@ -131,6 +131,11 @@ public class LoanDownPaymentHandlerServiceImpl implements LoanDownPaymentHandler
|| !DateUtils.isEqualBusinessDate(loanTransaction.getTransactionDate()) || currentInstallment == null
|| !currentInstallment.getTotalOutstanding(loan.getCurrency()).isEqualTo(loanTransaction.getAmount(loan.getCurrency()));
// TODO FINERACT-2220 fix processLatestTransaction to save model.
if (loan.isProgressiveSchedule() && loan.isInterestBearing()) {
reprocess = true;
}
if (isTransactionChronologicallyLatest && adjustedTransaction == null
&& (!reprocess || !loan.isInterestBearingAndInterestRecalculationEnabled()) && !loan.isForeclosure()) {
loanTransactionProcessingService.processLatestTransaction(loan.getTransactionProcessingStrategyCode(), loanTransaction,