FINERACT-2387: Fix zero amount reversed transaction creation issue
This commit is contained in:
committed by
Arnold Gálovics
parent
09bacb8827
commit
e0e4415727
+2
@@ -47,7 +47,9 @@ public class ReplayedTransactionBusinessEventServiceImpl implements ReplayedTran
|
|||||||
|
|
||||||
if (oldTransaction != null) {
|
if (oldTransaction != null) {
|
||||||
final LoanAdjustTransactionBusinessEvent.Data data = new LoanAdjustTransactionBusinessEvent.Data(oldTransaction);
|
final LoanAdjustTransactionBusinessEvent.Data data = new LoanAdjustTransactionBusinessEvent.Data(oldTransaction);
|
||||||
|
if (newTransaction.isNotReversed()) {
|
||||||
data.setNewTransactionDetail(newTransaction);
|
data.setNewTransactionDetail(newTransaction);
|
||||||
|
}
|
||||||
businessEventNotifierService.notifyPostBusinessEvent(new LoanAdjustTransactionBusinessEvent(data));
|
businessEventNotifierService.notifyPostBusinessEvent(new LoanAdjustTransactionBusinessEvent(data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -195,7 +195,7 @@ public class ReprocessLoanTransactionsServiceImpl implements ReprocessLoanTransa
|
|||||||
for (TransactionChangeData change : changedTransactionDetail.getTransactionChanges()) {
|
for (TransactionChangeData change : changedTransactionDetail.getTransactionChanges()) {
|
||||||
final LoanTransaction newTransaction = change.getNewTransaction();
|
final LoanTransaction newTransaction = change.getNewTransaction();
|
||||||
final LoanTransaction oldTransaction = change.getOldTransaction();
|
final LoanTransaction oldTransaction = change.getOldTransaction();
|
||||||
|
if (newTransaction.isNotReversed()) {
|
||||||
loanAccountService.saveLoanTransactionWithDataIntegrityViolationChecks(newTransaction);
|
loanAccountService.saveLoanTransactionWithDataIntegrityViolationChecks(newTransaction);
|
||||||
|
|
||||||
// Create journal entries for new transaction
|
// Create journal entries for new transaction
|
||||||
@@ -206,6 +206,7 @@ public class ReprocessLoanTransactionsServiceImpl implements ReprocessLoanTransa
|
|||||||
: new LoanAccrualAdjustmentTransactionBusinessEvent(newTransaction);
|
: new LoanAccrualAdjustmentTransactionBusinessEvent(newTransaction);
|
||||||
businessEventNotifierService.notifyPostBusinessEvent(businessEvent);
|
businessEventNotifierService.notifyPostBusinessEvent(businessEvent);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (oldTransaction != null) {
|
if (oldTransaction != null) {
|
||||||
loanAccountTransfersService.updateLoanTransaction(oldTransaction.getId(), newTransaction);
|
loanAccountTransfersService.updateLoanTransaction(oldTransaction.getId(), newTransaction);
|
||||||
|
|||||||
Reference in New Issue
Block a user