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,6 +308,9 @@ for account in accounts :\n ...@@ -308,6 +308,9 @@ for account in accounts :\n
item = { \'id\' : account.getGapId(),\n item = { \'id\' : account.getGapId(),\n
\'title\': account.getTitle(), }\n \'title\': account.getTitle(), }\n
item.update( getDefaultColumnValues( node_uid = account.getUid() ) )\n item.update( getDefaultColumnValues( node_uid = account.getUid() ) )\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 report_items.append( account.asContext( **formatValues(item) ) )\n
\n \n
return report_items\n return report_items\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