From a8684568681b1945e5129c78de6c70c5c9132040 Mon Sep 17 00:00:00 2001
From: Mame Coumba Sall <mame@nexedi.com>
Date: Wed, 27 May 2009 14:56:43 +0000
Subject: [PATCH] 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
---
 .../portal_skins/erp5_item/DeliveryLine_createItemList.xml    | 4 ++--
 bt5/erp5_item/bt/revision                                     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_createItemList.xml b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_createItemList.xml
index ddc66a0ffa..4e70d220cb 100644
--- a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_createItemList.xml
+++ b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_createItemList.xml
@@ -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
diff --git a/bt5/erp5_item/bt/revision b/bt5/erp5_item/bt/revision
index fa59ff276d..50f0bcd375 100644
--- a/bt5/erp5_item/bt/revision
+++ b/bt5/erp5_item/bt/revision
@@ -1 +1 @@
-134
\ No newline at end of file
+135
\ No newline at end of file
-- 
2.30.9