Commit 8df9ff0d authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Use same Trade Condition from the movement

parent 77b4b916
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
person_delivery_mapping = {} person_delivery_mapping = {}
portal = context.getPortalObject() portal = context.getPortalObject()
specialise = portal.portal_preferences.getPreferredAggregatedSaleTradeCondition()
for movement in movement_list: for movement in movement_list:
person = movement.getDestinationValue() person = movement.getDestinationValue()
try: try:
...@@ -18,7 +17,7 @@ for movement in movement_list: ...@@ -18,7 +17,7 @@ for movement in movement_list:
source_section=movement.getSourceSection(), source_section=movement.getSourceSection(),
destination_section=movement.getDestination(), destination_section=movement.getDestination(),
destination_decision=movement.getDestination(), destination_decision=movement.getDestination(),
specialise=specialise, specialise=movement.getSpecialise(),
price_currency=movement.getPriceCurrency() price_currency=movement.getPriceCurrency()
) )
delivery.confirm('New aggregated delivery.') delivery.confirm('New aggregated delivery.')
......
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