Commit a386a10f authored by Łukasz Nowak's avatar Łukasz Nowak

Support profit and loss movements in exposing causality.

parent 8ebfb938
...@@ -423,6 +423,10 @@ class RuleMixin(Predicate): ...@@ -423,6 +423,10 @@ class RuleMixin(Predicate):
for tester in profit_updating_tester_list: for tester in profit_updating_tester_list:
if not tester.compare(prevision_movement, decision_movement): if not tester.compare(prevision_movement, decision_movement):
kw.update(tester.getUpdatablePropertyDict(prevision_movement, decision_movement)) kw.update(tester.getUpdatablePropertyDict(prevision_movement, decision_movement))
# special cause: causality shall be updatable, coming from prevision
if set(prevision_movement.getCausalityList()) != \
set(decision_movement.getCausalityList()):
kw['causality'] = prevision_movement.getCausalityList()
if kw: if kw:
movement_collection_diff.addUpdatableMovement(decision_movement, kw) movement_collection_diff.addUpdatableMovement(decision_movement, kw)
else: else:
......
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