Commit 51c8a250 authored by Łukasz Nowak's avatar Łukasz Nowak

Compensation is undesired.

Raise loudly with message.
parent 72d8d26e
...@@ -366,6 +366,11 @@ class RuleMixin(Predicate): ...@@ -366,6 +366,11 @@ class RuleMixin(Predicate):
movement_collection_diff.addDeletableMovement(decision_movement) movement_collection_diff.addDeletableMovement(decision_movement)
else: else:
# Compensate non deletable # Compensate non deletable
from pprint import pformat
raise NotImplementedError(
'Compensation undesired: decision_movement_list = %s\n%s' % (
decision_movement_list,
pformat([q.__dict__ for q in decision_movement_list])))
new_movement = decision_movement.asContext( new_movement = decision_movement.asContext(
quantity=-decision_movement.getQuantity()) quantity=-decision_movement.getQuantity())
new_movement.setDelivery(None) new_movement.setDelivery(None)
......
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