From 44678885f5a180c36c050af420a0421dbe445e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 1 Mar 2006 17:14:31 +0000 Subject: [PATCH] Only display accounts that are in use. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5898 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../AccountModule_getAccountListForTrialBalance.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml index e830bcd36d..b99e090316 100755 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml @@ -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 -- 2.30.9