FINERACT-2221: Add immediate charge accrual post maturity for progressive loans

This commit is contained in:
Oleksii Novikov
2025-04-23 10:58:23 +02:00
committed by Adam Saghy
parent 241906e042
commit 3687391148
5 changed files with 61 additions and 7 deletions
@@ -220,6 +220,7 @@ class LoanChargeWritePlatformServiceImplTest {
when(configurationDomainService.isImmediateChargeAccrualPostMaturityEnabled()).thenReturn(isAccrualEnabled);
when(loan.getMaturityDate()).thenReturn(maturityDate);
when(loan.handleChargeAppliedTransaction(loanCharge, null)).thenReturn(loanTransaction);
when(loan.createChargeAppliedTransaction(loanCharge, null)).thenReturn(loanTransaction);
if (isAccrualExpected) {
when(loan.isPeriodicAccrualAccountingEnabledOnLoanProduct()).thenReturn(true);