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
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
......
179
\ No newline at end of file
180
\ 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