Commit 912ecf3e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

consider delivery ration in divergence message.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23055 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea5bcae0
...@@ -100,6 +100,7 @@ class QuantityDivergenceTester(PropertyDivergenceTester): ...@@ -100,6 +100,7 @@ class QuantityDivergenceTester(PropertyDivergenceTester):
# divergent even if the delivery quantity is 0 # divergent even if the delivery quantity is 0
if delivery_ratio is not None: if delivery_ratio is not None:
d_quantity *= delivery_ratio d_quantity *= delivery_ratio
message.decision_value = d_quantity
if delivery_ratio == 0 and quantity > 0: if delivery_ratio == 0 and quantity > 0:
return [message] return [message]
if d_quantity != quantity + d_error: if d_quantity != quantity + d_error:
......
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