Commit f04b4b4d authored by Kevin Deldycke's avatar Kevin Deldycke

Include the previous balance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6707 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2e74f08
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment