Commit d88ed03a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

these conditions are opposite.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31421 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 575ac18d
......@@ -285,7 +285,7 @@ class RuleMixin:
# Not Frozen can be updated
kw = {}
for tester in profit_tester_list:
if tester.compare(prevision_movement, decision_movement):
if not tester.compare(prevision_movement, decision_movement):
kw.update(tester.getUpdatablePropertyDict(prevision_movement, decision_movement))
if kw:
movement_collection_diff.addUpdatableMovement(decision_movement, kw)
......@@ -301,7 +301,7 @@ class RuleMixin:
# Not Frozen can be updated
kw = {}
for tester in divergence_tester_list:
if tester.compare(prevision_movement, decision_movement):
if not tester.compare(prevision_movement, decision_movement):
kw.update(tester.getUpdatablePropertyDict(prevision_movement, decision_movement))
# XXX-JPS - there is a risk here that quanity is wrongly updated
if kw:
......
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