Consistently use one_time_price instead of setup_fee

This commit is contained in:
fnux 2020-03-03 11:27:35 +01:00
commit 11e22f5001
6 changed files with 39 additions and 19 deletions

View file

@ -49,7 +49,7 @@ class VMProductViewSet(ProductViewSet):
# Add Product record to order (VM is mutable, allows to keep history in order).
# XXX: Move this to some kind of on_create hook in parent Product class?
order.add_record(vm.setup_fee,
order.add_record(vm.one_time_price,
vm.recurring_price(order.recurring_period), vm.description)
return Response(serializer.data)