[Erp5-report] r22775 - /erp5/trunk/products/ERP5/TargetSolver/CopyToTarget.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 31 09:54:36 CEST 2008
Author: kazuhiko
Date: Thu Jul 31 09:54:36 2008
New Revision: 22775
URL: http://svn.erp5.org?rev=22775&view=rev
Log:
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.
Modified:
erp5/trunk/products/ERP5/TargetSolver/CopyToTarget.py
Modified: erp5/trunk/products/ERP5/TargetSolver/CopyToTarget.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/TargetSolver/CopyToTarget.py?rev=22775&r1=22774&r2=22775&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/TargetSolver/CopyToTarget.py (original)
+++ erp5/trunk/products/ERP5/TargetSolver/CopyToTarget.py Thu Jul 31 09:54:36 2008
@@ -142,7 +142,8 @@
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()
More information about the Erp5-report
mailing list