Error with withdraw/deposit transactions after initiating hold transaction (#2540)
Co-authored-by: Dhaval Maniyar <dhavalmaniyar@Dhavals-MacBook-Pro.local>
This commit is contained in:
co-authored by
Dhaval Maniyar
parent
5dd199f34d
commit
2479dd1289
+1
-1
@@ -1015,7 +1015,7 @@ public class SavingsAccount extends AbstractPersistableCustom {
|
||||
if (!transaction.getRunningBalance(transactionAmount.getCurrency()).isEqualTo(transactionAmount)) {
|
||||
transaction.updateRunningBalance(runningBalance);
|
||||
}
|
||||
if (overdraftAmount.isZero() && runningBalance.isLessThanZero()) {
|
||||
if (overdraftAmount.isZero() && runningBalance.isLessThanZero() && !transaction.isAmountOnHold()) {
|
||||
overdraftAmount = overdraftAmount.plus(runningBalance.getAmount().negate());
|
||||
}
|
||||
if (transaction.getId() == null && overdraftAmount.isGreaterThanZero()) {
|
||||
|
||||
Reference in New Issue
Block a user