Commit 44678885 authored by Jérome Perrin's avatar Jérome Perrin

Only display accounts that are in use.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5898 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97edd766
......@@ -308,7 +308,10 @@ for account in accounts :\n
item = { \'id\' : account.getGapId(),\n
\'title\': account.getTitle(), }\n
item.update( getDefaultColumnValues( node_uid = account.getUid() ) )\n
report_items.append( account.asContext( **formatValues(item) ) )\n
if ( item[\'opening_balance\'] != 0 or\n
item[\'credit_movement\'] != 0 or\n
item[\'debit_movement\'] != 0 ) :\n
report_items.append( account.asContext( **formatValues(item) ) )\n
\n
return report_items\n
# vim: syntax=python\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