Commit eca39694 authored by Kevin Deldycke's avatar Kevin Deldycke

Use where_expression instead of my previous hack.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6696 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 732e9d06
......@@ -100,12 +100,12 @@ for account in portal.portal_categories.account_type.income\\\n
portal.portal_categories.account_type.expense\\\n
.getAccountTypeRelatedValueList(portal_type = \'Account\'):\n
\n
quantity = getInventory( node_uid = account.getUid()\n
, omit_simulation = 1\n
, simulation_state = [\'stopped\', \'delivered\']\n
, section_uid = section_uid\n
, at_date = at_date\n
, section_portal_type_list = [\'Organisation\']\n
quantity = getInventory( node_uid = account.getUid()\n
, omit_simulation = 1\n
, simulation_state = [\'stopped\', \'delivered\']\n
, section_uid = section_uid\n
, at_date = at_date\n
, where_expression = " section.portal_type = \'Organisation\' "\n
)\n
quantity = quantity or 0.0\n
total_quantity += context.Base_getRoundValue(quantity, precision)\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