From a6668e11b9d04cf3b68afa04afc630d1ff2ab801 Mon Sep 17 00:00:00 2001 From: armenrz Date: Thu, 28 Feb 2008 04:21:52 +0000 Subject: [PATCH] Fix [1902240] BanksStatement beggining balance not working --- base/src/org/compiere/model/MBankStatement.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/base/src/org/compiere/model/MBankStatement.java b/base/src/org/compiere/model/MBankStatement.java index 0e85e8aea9..162b6d1cb5 100644 --- a/base/src/org/compiere/model/MBankStatement.java +++ b/base/src/org/compiere/model/MBankStatement.java @@ -326,11 +326,6 @@ public class MBankStatement extends X_C_BankStatement implements DocAction maxDate = line.getDateAcct(); } setStatementDifference(total); - //AZ Goodwill - //refresh current balance - MBankAccount ba = MBankAccount.get(getCtx(), getC_BankAccount_ID()); - setBeginningBalance(ba.getCurrentBalance()); - //end AZ setEndingBalance(getBeginningBalance().add(total)); if (!MPeriod.isOpen(getCtx(), minDate, MDocType.DOCBASETYPE_BankStatement) || !MPeriod.isOpen(getCtx(), maxDate, MDocType.DOCBASETYPE_BankStatement)) @@ -464,13 +459,6 @@ public class MBankStatement extends X_C_BankStatement implements DocAction if (MFactAcct.delete(Table_ID, getC_BankStatement_ID(), get_TrxName()) < 0) return false; // could not delete } - - //Added Lines by AZ Goodwill - //Recover Bank Account - MBankAccount ba = MBankAccount.get(getCtx(), getC_BankAccount_ID()); - ba.setCurrentBalance(ba.getCurrentBalance().subtract(getStatementDifference())); - ba.save(get_TrxName()); - //End of Added Lines // Set lines to 0 MBankStatementLine[] lines = getLines(true);