mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Set original_price to TaxedPrice even with variations
This commit is contained in:
@@ -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
|
display_add_to_cart = display_add_to_cart or item.order_max > 0
|
||||||
else:
|
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:
|
for var in item.available_variations:
|
||||||
if voucher and (voucher.allow_ignore_quota or voucher.block_quota):
|
if voucher and (voucher.allow_ignore_quota or voucher.block_quota):
|
||||||
var.cached_availability = (
|
var.cached_availability = (
|
||||||
|
|||||||
Reference in New Issue
Block a user