Commit 2f62e9de authored by Sebastien Robin's avatar Sebastien Robin

check the value of the old quantity


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4682 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34af6ac0
......@@ -49,7 +49,9 @@ class CopyToTarget(TargetSolver):
new_start_date = movement.getDeliveryStartDateList()[0]
new_stop_date = movement.getDeliveryStopDateList()[0]
# Calculate delta
quantity_ratio = new_quantity / old_quantity
quantity_ratio = 0
if old_quantity not in (None,0.0):
quantity_ratio = new_quantity / old_quantity
start_date_delta = 0
stop_date_delta = 0
if new_start_date is not None and old_start_date is not None:
......
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