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

Do not display accounts with no mirror_section / payment which have no

related transactions.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5718 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48c8020b
...@@ -231,17 +231,20 @@ for c in gap_value_list :\n ...@@ -231,17 +231,20 @@ for c in gap_value_list :\n
preferences = preferences ))\n preferences = preferences ))\n
\n \n
else :\n else :\n
result.append(ReportSection(\n if len(portal.portal_simulation.getInventoryList(\n
path = account.getPhysicalPath(),\n node_uid = account.getUid(),\n
title = "%s: %s" % (c.getId(), account.getTitle()),\n **account_inventory_list_cache_params )):\n
level = 9,\n result.append(ReportSection(\n
form_id = \'Account_viewAccountingTransactionList\',\n path = account.getPhysicalPath(),\n
selection_name = \'acount_preference_selection\',\n title = "%s: %s" % (c.getId(), account.getTitle()),\n
selection_params = params,\n level = 9,\n
selection_columns = account_columns,\n form_id = \'Account_viewAccountingTransactionList\',\n
listbox_display_mode = \'FlatListMode\',\n selection_name = \'acount_preference_selection\',\n
selection_sort_order = [(\'delivery.stop_date\', \'ascending\')],\n selection_params = params,\n
preferences = preferences ))\n selection_columns = account_columns,\n
listbox_display_mode = \'FlatListMode\',\n
selection_sort_order = [(\'delivery.stop_date\', \'ascending\')],\n
preferences = preferences ))\n
\n \n
return result\n return result\n
# vim: syntax=python\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