Commit 5d840f91 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

delivery_ratio should be 1 instead of 0 if missing.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35423 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 518b838e
......@@ -53,7 +53,7 @@ class Copy(TargetSolver):
if scope == 'quantity':
property_id = 'quantity'
delivery_quantity = delivery.getQuantity()
delivery_ratio = simulation_movement.getDeliveryRatio(0.0)
delivery_ratio = simulation_movement.getDeliveryRatio()
old_quantity = simulation_movement.getQuantity(0.0)
new_quantity = delivery_quantity * delivery_ratio
quantity_ratio = 0
......
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