FINERACT-1938: Fix calculating running balance after release amount in batch request

This commit is contained in:
mariiaKraievska
2023-09-29 17:31:38 +02:00
committed by Adam Saghy
parent 88d2f44cb4
commit 480b9542ed
3 changed files with 78 additions and 14 deletions
@@ -1824,6 +1824,8 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
if (backdatedTxnsAllowedTill) {
this.savingsAccountTransactionRepository.saveAll(account.getSavingsAccountTransactionsWithPivotConfig());
} else {
account.addTransaction(transaction);
}
this.savingAccountRepositoryWrapper.save(account);