FINERACT-2326: Do not remove external id if transaction got not replayed

This commit is contained in:
Adam Saghy
2025-10-08 21:33:04 +02:00
parent b692248a8a
commit ebae20654a
5 changed files with 123 additions and 10 deletions
@@ -1214,7 +1214,9 @@ public class AdvancedPaymentScheduleTransactionProcessor extends AbstractLoanRep
protected void createNewTransaction(final LoanTransaction oldTransaction, final LoanTransaction newTransaction,
final TransactionCtx ctx) {
oldTransaction.updateExternalId(null);
if (newTransaction.isNotReversed()) {
oldTransaction.updateExternalId(null);
}
oldTransaction.getLoanChargesPaid().clear();
if (newTransaction.getTypeOf().isInterestRefund()) {