Set original_price to TaxedPrice even with variations

This commit is contained in:
Raphael Michel
2019-05-09 23:30:50 +02:00
parent 5d8e3e28d6
commit 7021c178ab

View File

@@ -146,6 +146,12 @@ def get_grouped_items(event, subevent=None, voucher=None, channel='web'):
display_add_to_cart = display_add_to_cart or item.order_max > 0
else:
item.original_price = (
item.tax(item.original_price, currency=event.currency, include_bundled=True,
base_price_is='net' if event.settings.display_net_prices else 'gross') # backwards-compat
if item.original_price else None
)
for var in item.available_variations:
if voucher and (voucher.allow_ignore_quota or voucher.block_quota):
var.cached_availability = (