Commit 5f02b838 authored by Jérome Perrin's avatar Jérome Perrin

dates are now returned by getInventoryQueryDict

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37221 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cd62e742
......@@ -59,12 +59,6 @@ budget_model = budget.getSpecialiseValue(portal_type=\'Budget Model\')\n
if budget_model is not None:\n
kw = budget_model.getInventoryQueryDict(context)\n
\n
kw.setdefault(\'from_date\', budget.getStartDateRangeMin())\n
start_date_range_max = budget.getStartDateRangeMax()\n
if start_date_range_max:\n
start_date_range_max = start_date_range_max.latestTime()\n
kw.setdefault(\'at_date\', start_date_range_max)\n
\n
if from_date:\n
kw[\'from_date\'] = from_date\n
if at_date:\n
......@@ -120,7 +114,6 @@ return (context.portal_simulation.getCurrentInventoryAssetPrice(**kw) or 0) * co
<string>budget</string>
<string>budget_model</string>
<string>None</string>
<string>start_date_range_max</string>
<string>_write_</string>
<string>_apply_</string>
</tuple>
......
......@@ -59,12 +59,6 @@ budget_model = budget.getSpecialiseValue(portal_type=\'Budget Model\')\n
if budget_model is not None:\n
kw = budget_model.getInventoryQueryDict(context)\n
\n
kw.setdefault(\'from_date\', budget.getStartDateRangeMin())\n
start_date_range_max = budget.getStartDateRangeMax()\n
if start_date_range_max:\n
start_date_range_max = start_date_range_max.latestTime()\n
kw.setdefault(\'at_date\', start_date_range_max)\n
\n
if from_date:\n
kw[\'from_date\'] = from_date\n
if at_date:\n
......@@ -124,7 +118,6 @@ return (context.portal_simulation.getInventoryAssetPrice(**kw) or 0) * context.g
<string>budget</string>
<string>budget_model</string>
<string>None</string>
<string>start_date_range_max</string>
<string>_write_</string>
<string>_apply_</string>
</tuple>
......
289
\ No newline at end of file
290
\ 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