Do not issue invoices for free payments

This commit is contained in:
Raphael Michel
2016-08-05 11:06:22 +02:00
parent f93b2211a6
commit a61792ed4e
9 changed files with 78 additions and 26 deletions

View File

@@ -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