From 70f01da7773a11d833ba04def7735be4da413025 Mon Sep 17 00:00:00 2001 From: Mame Coumba Sall <mame@nexedi.com> Date: Wed, 19 Aug 2009 19:32:56 +0000 Subject: [PATCH] 2009-08-19 mame *add new parameters on getQuantity git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28474 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_item/DeliveryLine_createItemList.xml | 4 +++- bt5/erp5_item/bt/revision | 2 +- 2 files changed, 4 insertions(+), 2 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 3bcdae9928..58d11e3fdc 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 @@ -71,6 +71,8 @@ elif context.getPortalType()==\'Sale Packing List Line\':\n cell_portal_type = \'Sale Packing List Cell\'\n elif context.getPortalType()== \'Internal Packing List Line\':\n cell_portal_type = \'Internal Packing List Cell\'\n +elif context.getPortalType()== \'Inventory Line\':\n + cell_portal_type = \'Inventory Cell\'\n \n item_property_dict = dict()\n \n @@ -162,7 +164,7 @@ if update_quantity:\n raise NotImplementedError(\n \'Quantity unit from the movement differs from quantity\'\n \' unit on the item\')\n - quantity += item.getQuantity()\n + quantity += item.getQuantity(at_date = DateTime().Date())\n movement.setQuantity(quantity)\n \n return context.Base_redirect(form_id, keep_items=dict(\n diff --git a/bt5/erp5_item/bt/revision b/bt5/erp5_item/bt/revision index cde50ca2fd..a14c1ee5ab 100644 --- a/bt5/erp5_item/bt/revision +++ b/bt5/erp5_item/bt/revision @@ -1 +1 @@ -179 \ No newline at end of file +180 \ No newline at end of file -- 2.30.9