From bd6806b94486e593e3fbfba3ff63b0743c07054f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 3 Mar 2011 15:08:24 +0000
Subject: [PATCH] "Balance" colum from Transaction tab on accounts was showing
 a wrong value on stat for accounts having a debit initial balance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43944 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_accounting/Node_statAccountingBalance.xml | 2 +-
 bt5/erp5_accounting/bt/revision                                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_statAccountingBalance.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_statAccountingBalance.xml
index b97bb6c135..21460f3a47 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_statAccountingBalance.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_statAccountingBalance.xml
@@ -153,7 +153,7 @@ if params.get(\'period_start_date\', 0) and params.get(\'node_uid\'):\n
     return getInventoryAssetPrice(\n
            from_date=period_start_date,\n
            at_date=at_date,\n
-           **params) - max(-period_openning_balance, 0)\n
+           **params) + period_openning_balance\n
 \n
 return getInventoryAssetPrice(\n
               omit_asset_increase=omit_asset_increase,\n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index ce7224cd64..ac3f740c0f 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-1455
\ No newline at end of file
+1456
\ No newline at end of file
-- 
2.30.9