We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0266aad + bc2d3d5 commit b04686dCopy full SHA for b04686d
app/api/helpers/order.py
@@ -283,15 +283,15 @@ def calculate_order_amount(tickets, discount_code=None):
283
f"{ticket.min_price} to {ticket.max_price}",
284
)
285
else:
286
- price = ticket.price if ticket.type != 'free' else 0.0
+ price = ticket.price if ticket.type not in ['free', 'freeRegistration'] else 0.0
287
288
if tax:
289
if tax_included:
290
ticket_tax = price - price / (1 + tax.rate / 100)
291
292
ticket_tax = price * tax.rate / 100
293
294
- if discount_code and ticket.type != 'free':
+ if discount_code and ticket.type not in ['free', 'freeRegistration']:
295
code = (
296
DiscountCode.query.with_parent(ticket)
297
.filter_by(id=discount_code.id)
0 commit comments