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 e830bcd36d032a7a91a83cd3a7b620fb66d53781..b99e0903161d8e7f32e2323d4b0e800e66b9d11d 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