forked from CGM_Public/pretix_original
Fix bug in previous commit
This commit is contained in:
@@ -199,7 +199,7 @@ def approve_order(order, user=None, send_mail: bool=True, auth=None):
|
|||||||
invoice = order.invoices.last() # Might be generated by plugin already
|
invoice = order.invoices.last() # Might be generated by plugin already
|
||||||
if order.event.settings.get('invoice_generate') == 'True' and invoice_qualified(order):
|
if order.event.settings.get('invoice_generate') == 'True' and invoice_qualified(order):
|
||||||
if not invoice:
|
if not invoice:
|
||||||
generate_invoice(
|
invoice = generate_invoice(
|
||||||
order,
|
order,
|
||||||
trigger_pdf=not order.event.settings.invoice_email_attachment or not order.email
|
trigger_pdf=not order.event.settings.invoice_email_attachment or not order.email
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user