Commit 9b87f5cb authored by Sebastien Robin's avatar Sebastien Robin

check date in isDivergent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3465 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80eba8a1
...@@ -622,6 +622,8 @@ class Delivery(XMLObject): ...@@ -622,6 +622,8 @@ class Delivery(XMLObject):
simulation_quantity = 0. simulation_quantity = 0.
for simulation_movement in movement.getDeliveryRelatedValueList(): for simulation_movement in movement.getDeliveryRelatedValueList():
simulation_quantity += float(simulation_movement.getCorrectedQuantity()) simulation_quantity += float(simulation_movement.getCorrectedQuantity())
if simulation_movement.getStartDate() != movement.getStartDate():
return 1
if d_quantity != simulation_quantity: if d_quantity != simulation_quantity:
return 1 return 1
return 0 return 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