Commit ef2e9ace authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

TransformationRule: Do not copy target resource price on source resource

parent a992b1ad
...@@ -146,6 +146,7 @@ class TransformationRuleMovementGenerator(MovementGeneratorMixin): ...@@ -146,6 +146,7 @@ class TransformationRuleMovementGenerator(MovementGeneratorMixin):
amount.getCategoryList(), amount.getCategoryList(),
base=True) base=True)
movement.quantity = - movement.quantity movement.quantity = - movement.quantity
movement.setPrice(movement.getResourceValue().getPrice())
yield movement yield movement
phase_dict = parent_movement.asComposedDocument() \ phase_dict = parent_movement.asComposedDocument() \
.getPreviousTradePhaseDict(phase_set) .getPreviousTradePhaseDict(phase_set)
......
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