mirror of
https://github.com/pretix/pretix.git
synced 2026-08-25 13:12:00 +00:00
Invoices: Allow issuing invoices only to businesses
In situations where every invoice has a significant accounting cost and consumers usually do not need invoices, this can save a lot of money or effort.
This commit is contained in:
@@ -1742,7 +1742,7 @@ class OrderInvoiceReissue(OrderView):
|
||||
messages.error(self.request, _('The invoice has been cleaned of personal data.'))
|
||||
else:
|
||||
c = generate_cancellation(inv)
|
||||
if order.status not in (Order.STATUS_CANCELED, Order.STATUS_EXPIRED):
|
||||
if invoice_qualified(order):
|
||||
inv = generate_invoice(order)
|
||||
else:
|
||||
inv = c
|
||||
|
||||
Reference in New Issue
Block a user