1008183 C_BankAccount.CurrentBalance is updated when Drafted Bank Statement is voided (IDEMPIERE-3414)
This commit is contained in:
parent
5625e27627
commit
680cf7f5a7
|
@ -454,6 +454,7 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
|
|||
MFactAcct.deleteEx(Table_ID, getC_BankStatement_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
if (isProcessed()) {
|
||||
//Added Lines by AZ Goodwill
|
||||
//Restore Bank Account Balance
|
||||
MBankAccount ba = getBankAccount();
|
||||
|
@ -461,6 +462,7 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
|
|||
ba.setCurrentBalance(ba.getCurrentBalance().subtract(getStatementDifference()));
|
||||
ba.saveEx();
|
||||
//End of Added Lines
|
||||
}
|
||||
|
||||
// Set lines to 0
|
||||
MBankStatementLine[] lines = getLines(true);
|
||||
|
|
Loading…
Reference in New Issue