FINERACT-1841 Fix Duplicated journal entries when a chargeback happens
This commit is contained in:
committed by
Arnold Gálovics
parent
77ee43acb8
commit
db480f4213
+3
-3
@@ -1226,9 +1226,6 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
||||
transactionId);
|
||||
}
|
||||
|
||||
final List<Long> existingTransactionIds = new ArrayList<>();
|
||||
final List<Long> existingReversedTransactionIds = new ArrayList<>();
|
||||
|
||||
checkClientOrGroupActive(loan);
|
||||
|
||||
if (loanTransaction.isReversed()) {
|
||||
@@ -1244,6 +1241,9 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
||||
transactionId);
|
||||
}
|
||||
|
||||
final List<Long> existingTransactionIds = loan.findExistingTransactionIds();
|
||||
final List<Long> existingReversedTransactionIds = loan.findExistingReversedTransactionIds();
|
||||
|
||||
businessEventNotifierService.notifyPreBusinessEvent(new LoanChargebackTransactionBusinessEvent(loanTransaction));
|
||||
|
||||
final LocalDate transactionDate = DateUtils.getBusinessLocalDate();
|
||||
|
||||
Reference in New Issue
Block a user