FINERACT-2104: Accrual Activity Reverse Replay Transaction

This commit is contained in:
Soma Sörös
2024-07-15 10:31:28 +02:00
committed by Adam Saghy
parent a4f077d675
commit 9fceaf98b3
8 changed files with 398 additions and 24 deletions
@@ -264,7 +264,7 @@ public class LoanChargeWritePlatformServiceImpl implements LoanChargeWritePlatfo
// [For Adv payment allocation strategy] check if charge due date is earlier than last transaction
// date, if yes trigger reprocess else no reprocessing
if (AdvancedPaymentScheduleTransactionProcessor.ADVANCED_PAYMENT_ALLOCATION_STRATEGY.equals(loan.transactionProcessingStrategy())) {
LoanTransaction lastPaymentTransaction = loan.getLastPaymentTransaction();
LoanTransaction lastPaymentTransaction = loan.getLastTransactionForReprocessing();
if (lastPaymentTransaction != null) {
if (loanCharge.getEffectiveDueDate() != null
&& DateUtils.isAfter(loanCharge.getEffectiveDueDate(), lastPaymentTransaction.getTransactionDate())) {