Commit f496f50a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

delivery_ratio should be considered if specified to do so.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30760 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 800b26f0
...@@ -68,6 +68,8 @@ class FloatDivergenceTester(Predicate, DivergenceTesterMixin): ...@@ -68,6 +68,8 @@ class FloatDivergenceTester(Predicate, DivergenceTesterMixin):
""" """
tested_property = self.getTestedProperty() tested_property = self.getTestedProperty()
decision_value = decision_movement.getProperty(tested_property) decision_value = decision_movement.getProperty(tested_property)
if self.getProperty('delivery_ratio_enabled'):
decision_value *= prevision_movement.getDeliveryRatio()
if prevision_movement.isPropertyRecorded(tested_property): if prevision_movement.isPropertyRecorded(tested_property):
prevision_value = prevision_movement.getRecordedProperty(tested_property) prevision_value = prevision_movement.getRecordedProperty(tested_property)
if isinstance(prevision_value, (list, tuple)): if isinstance(prevision_value, (list, tuple)):
......
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