Skip to content

Commit

Permalink
Removed negative balance checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dcsepely committed Oct 5, 2023
1 parent ecdd010 commit 0597ec1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public SavingsAccountTransaction handleWithdrawal(final SavingsAccount account,
.findBySavingsAccountAndReversedFalseOrderByCreatedDateAsc(account);
}

account.validateAccountBalanceDoesNotBecomeNegative(transactionAmount, transactionBooleanValues.isExceptionForBalanceCheck(),
depositAccountOnHoldTransactions, backdatedTxnsAllowedTill);
// account.validateAccountBalanceDoesNotBecomeNegative(transactionAmount, transactionBooleanValues.isExceptionForBalanceCheck(),
// depositAccountOnHoldTransactions, backdatedTxnsAllowedTill);

saveTransactionToGenerateTransactionId(withdrawal);
if (backdatedTxnsAllowedTill) {
Expand Down

0 comments on commit 0597ec1

Please sign in to comment.