Commit c521d6b5 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: restore previous price setting

parent 3152b00d
...@@ -72,9 +72,16 @@ for movement in movement_list: ...@@ -72,9 +72,16 @@ for movement in movement_list:
specialise=specialise, specialise=specialise,
price_currency=movement.getPriceCurrency(), price_currency=movement.getPriceCurrency(),
start_date=movement.getStartDate(), start_date=movement.getStartDate(),
price=movement.getPrice(0.0)
) )
# XXX Shamefully hardcoded values
if movement.getResource() in ('service_module/slapos_instance_subscription',
'service_module/slapos_reservation_refund'):
temp_movement.edit(price=movement.getPrice(0.0))
else:
temp_movement.edit(price=0.0)
instance_tree = movement.getAggregateValue(portal_type="Instance Tree") instance_tree = movement.getAggregateValue(portal_type="Instance Tree")
if movement.getSpecialiseUid() in consumption_specialise_uid_list: if movement.getSpecialiseUid() in consumption_specialise_uid_list:
......
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