Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/api/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,14 @@ def after_update_object(self, order, data, view_kwargs):
# create pdf tickets.
create_pdf_tickets_for_holder(order)

if order.status == 'cancelled':
if order.status == 'cancelled' and order.deleted_at is None:
send_order_cancel_email(order)
send_notif_ticket_cancel(order)

# delete the attendees so that the tickets are unlocked.
delete_related_attendees_for_order(order)

elif order.status == 'completed' or order.status == 'placed':

elif (order.status == 'completed' or order.status == 'placed') and order.deleted_at is None:
# Send email to attendees with invoices and tickets attached
order_identifier = order.identifier

Expand Down