Commit a156bdf1 authored by Sebastien Robin's avatar Sebastien Robin

check dates is the work of simulation movement instead of delivery in...

check dates is the work of simulation movement instead of delivery in isDivergent, so remove my previous commit


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3477 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 85808303
...@@ -622,8 +622,6 @@ class Delivery(XMLObject): ...@@ -622,8 +622,6 @@ 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