Commit 85f7e47d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

consider quantity ratio to solve quantity divergence correctly for a delivery...

consider quantity ratio to solve quantity divergence correctly for a delivery line with multiple simulation movements. this will fix the failures of testPackingList.py (test_05c_SimulationChangeQuantityAndAcceptDecisionForMergedLine) introduced in r.22774.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22775 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2b5ba5e
......@@ -142,7 +142,8 @@ class CopyToTarget(TargetSolver):
if is_last_movement:
delivery_quantity = \
simulation_movement.getDeliveryValue().getQuantity()
simulation_movement.setDeliveryError(delivery_quantity -
delivery_ratio = simulation_movement.getDeliveryRatio()
simulation_movement.setDeliveryError(delivery_quantity * delivery_ratio -
value_dict['quantity'])
delivery = simulation_movement.getDeliveryValue()
......
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