forked from CGM_Public/pretix_original
Do not issue invoices for free payments
This commit is contained in:
@@ -325,6 +325,12 @@ def invoice_pdf(invoice: int):
|
||||
return i.file.name
|
||||
|
||||
|
||||
def invoice_qualified(order: Order):
|
||||
if order.total == Decimal('0.00'):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
if settings.HAS_CELERY:
|
||||
from pretix.celery import app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user