mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
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