From f04b4b4d2c8f6f00112666a4e94f9e22734b2dac Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Fri, 14 Apr 2006 21:15:46 +0000
Subject: [PATCH] Include the previous balance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6707 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_accounting/Account_statSourceBalance.xml            | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_statSourceBalance.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_statSourceBalance.xml
index f1bc6f5cb3..43355ce2ef 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_statSourceBalance.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_statSourceBalance.xml
@@ -183,6 +183,11 @@ if params.has_key(\'to_date\'):\n
   if params.has_key(\'from_date\'): del params[\'from_date\']\n
 \n
 ###\n
+# Include the previous balance\n
+if params.has_key(\'from_date\') and params.has_key(\'at_date\'):\n
+  del params[\'from_date\']\n
+\n
+###\n
 # Call the query with selected parameters\n
 # context.log("SQL with %s \\n" % params, context.Account_zGetTotalQuantity(src__=1, **params))\n
 result = context.Account_zGetTotalQuantity(**params)\n
-- 
2.30.9