forked from CGM_Public/pretix_original
Fix crash on addons without tax rule
PRETIXEU-2MZ
This commit is contained in:
@@ -285,7 +285,7 @@ class AddOnsStep(CartMixin, AsyncAction, TemplateFlowStep):
|
|||||||
net=a.price - a.tax_value,
|
net=a.price - a.tax_value,
|
||||||
gross=a.price,
|
gross=a.price,
|
||||||
tax=a.tax_value,
|
tax=a.tax_value,
|
||||||
name=a.item.tax_rule.name,
|
name=a.item.tax_rule.name if a.item.tax_rule else "",
|
||||||
rate=a.tax_rate,
|
rate=a.tax_rate,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user