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:
Raphael Michel
2026-01-26 09:30:10 +01:00
parent 5c8e785a6f
commit 15c2c39ac4
8 changed files with 46 additions and 4 deletions
+1 -1
View File
@@ -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