Commit a8192820 authored by Nicolas Dumazet's avatar Nicolas Dumazet

use a TempAmount as parameter to getAggregatedAmountList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33903 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dc90ca2d
......@@ -56,9 +56,11 @@
<value> <string>if selection_name is not None:\n
\n
reference_variation_category_list = context.portal_selections.getSelectionParamsFor(selection_name)[\'reference_variation_category_list\']\n
request = context.REQUEST\n
request.other[\'categories\'] = reference_variation_category_list\n
tmp_context = context.asContext(context=context, REQUEST=request)\n
from Products.ERP5Type.Document import newTempAmount\n
tmp_context = newTempAmount(context, "temp_context",\n
quantity=1.0,\n
variation_category_list=reference_variation_category_list,\n
resource=context.getRelativeUrl()) \n
\n
aal = context.getAggregatedAmountList(tmp_context)\n
\n
......@@ -111,8 +113,8 @@ else:\n
<string>_getattr_</string>
<string>context</string>
<string>reference_variation_category_list</string>
<string>request</string>
<string>_write_</string>
<string>Products.ERP5Type.Document</string>
<string>newTempAmount</string>
<string>tmp_context</string>
<string>aal</string>
<string>result</string>
......
......@@ -56,9 +56,11 @@
<value> <string>if selection_name is not None:\n
\n
reference_variation_category_list = context.portal_selections.getSelectionParamsFor(selection_name)[\'reference_variation_category_list\']\n
request = context.REQUEST\n
request.other[\'categories\'] = reference_variation_category_list\n
tmp_context = context.asContext(context=context, REQUEST=request)\n
from Products.ERP5Type.Document import newTempAmount\n
tmp_context = newTempAmount(context, "temp_context",\n
quantity=1.0,\n
variation_category_list=reference_variation_category_list,\n
resource=context.getRelativeUrl()) \n
price_currency = request.get(\'price_currency\', None)\n
\n
aal = context.getAggregatedAmountList(tmp_context)\n
......@@ -119,9 +121,10 @@ else:\n
<string>_getattr_</string>
<string>context</string>
<string>reference_variation_category_list</string>
<string>request</string>
<string>_write_</string>
<string>Products.ERP5Type.Document</string>
<string>newTempAmount</string>
<string>tmp_context</string>
<string>request</string>
<string>price_currency</string>
<string>aal</string>
<string>_getiter_</string>
......
482
\ No newline at end of file
483
\ 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