Commit 80752437 authored by Jérome Perrin's avatar Jérome Perrin

Always return a float in getDeliveryQuantity()


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7106 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80023d59
......@@ -417,7 +417,7 @@ class SimulationMovement(Movement):
"""
Returns the quantity of related delivery(s)
"""
quantity = None
quantity = 0.0
delivery_movement = self.getDeliveryValue()
if delivery_movement is not None:
quantity = delivery_movement.getQuantity()
......
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