Commit 70f01da7 authored by Mame Coumba Sall's avatar Mame Coumba Sall

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
parent 9f0c9773
...@@ -71,6 +71,8 @@ elif context.getPortalType()==\'Sale Packing List Line\':\n ...@@ -71,6 +71,8 @@ elif context.getPortalType()==\'Sale Packing List Line\':\n
cell_portal_type = \'Sale Packing List Cell\'\n cell_portal_type = \'Sale Packing List Cell\'\n
elif context.getPortalType()== \'Internal Packing List Line\':\n elif context.getPortalType()== \'Internal Packing List Line\':\n
cell_portal_type = \'Internal Packing List Cell\'\n cell_portal_type = \'Internal Packing List Cell\'\n
elif context.getPortalType()== \'Inventory Line\':\n
cell_portal_type = \'Inventory Cell\'\n
\n \n
item_property_dict = dict()\n item_property_dict = dict()\n
\n \n
...@@ -162,7 +164,7 @@ if update_quantity:\n ...@@ -162,7 +164,7 @@ if update_quantity:\n
raise NotImplementedError(\n raise NotImplementedError(\n
\'Quantity unit from the movement differs from quantity\'\n \'Quantity unit from the movement differs from quantity\'\n
\' unit on the item\')\n \' unit on the item\')\n
quantity += item.getQuantity()\n quantity += item.getQuantity(at_date = DateTime().Date())\n
movement.setQuantity(quantity)\n movement.setQuantity(quantity)\n
\n \n
return context.Base_redirect(form_id, keep_items=dict(\n return context.Base_redirect(form_id, keep_items=dict(\n
......
179 180
\ No newline at end of file \ 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