Commit a8684568 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-05-27 mame

*modified to aggregate a list of items on cell

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27214 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 85fbffef
......@@ -97,10 +97,10 @@ for line in kw.get(\'listbox\'):\n
cell = context.newCell(base_id=base_id, \\\n
portal_type=cell_portal_type,*cell_key)\n
cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
price=cell.getPrice(), quantity=quantity,\n
price=cell.getPrice(), quantity=cell.getQuantity()+quantity,\n
predicate_category_list=cell_key,\n
variation_category_list=cell_key)\n
cell.setAggregateValue(item)\n
cell.setAggregateValueList(cell.getAggregateValueList()+[item])\n
total_quantity+=line[\'quantity\']\n
\n
if movement_cell_list ==[]:\n
......
134
\ No newline at end of file
135
\ 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