Order change: Allow to keep price when changing items

This commit is contained in:
Raphael Michel
2019-02-11 16:15:13 +01:00
parent d9d1c83218
commit d073007fd7
5 changed files with 25 additions and 4 deletions

View File

@@ -1229,7 +1229,7 @@ class OrderChange(OrderView):
variation = ItemVariation.objects.get(pk=varid, item=item)
else:
variation = None
ocm.change_item(p, item, variation)
ocm.change_item(p, item, variation, keep_price=p.form.cleaned_data['change_product_keep_price'])
elif p.form.cleaned_data['operation'] == 'price':
ocm.change_price(p, p.form.cleaned_data['price'])
elif p.form.cleaned_data['operation'] == 'subevent':