Commit 7d8704bf authored by Jérome Perrin's avatar Jérome Perrin

we don't want to getInventory with at_date and to_date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13314 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7da5bb8f
...@@ -87,6 +87,7 @@ if not from_date:\n ...@@ -87,6 +87,7 @@ if not from_date:\n
if kw.get(\'no_from_date\') and from_date:\n if kw.get(\'no_from_date\') and from_date:\n
from_date = None\n from_date = None\n
\n \n
\n
# this script can be used for Node, Section or Payment\n # this script can be used for Node, Section or Payment\n
if kw.get(\'node_uid\'):\n if kw.get(\'node_uid\'):\n
params[\'node_uid\'] = kw[\'node_uid\']\n params[\'node_uid\'] = kw[\'node_uid\']\n
...@@ -109,6 +110,7 @@ if from_date:\n ...@@ -109,6 +110,7 @@ if from_date:\n
get_inventory_kw[\'to_date\'] = from_date\n get_inventory_kw[\'to_date\'] = from_date\n
# TODO: using a list of section_uid \n # TODO: using a list of section_uid \n
# \'where_expression\': " section.portal_type = \'Organisation\' " \n # \'where_expression\': " section.portal_type = \'Organisation\' " \n
get_inventory_kw.pop(\'at_date\', None)\n
\n \n
# Get previous debit and credit\n # Get previous debit and credit\n
getInventoryAssetPrice = portal.portal_simulation.getInventoryAssetPrice\n getInventoryAssetPrice = portal.portal_simulation.getInventoryAssetPrice\n
...@@ -164,6 +166,7 @@ if from_date:\n ...@@ -164,6 +166,7 @@ if from_date:\n
\n \n
if selection.getParams().get(\'hide_grouping\'):\n if selection.getParams().get(\'hide_grouping\'):\n
params[\'where_expression\'] = \'catalog.grouping_reference is NULL\'\n params[\'where_expression\'] = \'catalog.grouping_reference is NULL\'\n
\n
# We try not to convert to a list, hence the copy & paste\n # We try not to convert to a list, hence the copy & paste\n
return portal.portal_simulation.getMovementHistoryList(\n return portal.portal_simulation.getMovementHistoryList(\n
from_date=from_date,\n from_date=from_date,\n
......
207 208
\ No newline at end of file \ No newline at end of file
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