New invoice generation setting: User request but paid only (#4740)

This commit is contained in:
Raphael Michel
2025-01-14 13:54:25 +01:00
committed by GitHub
parent ff6b4ae7bf
commit 5cf2f1beef
5 changed files with 21 additions and 4 deletions

View File

@@ -710,7 +710,7 @@ def can_generate_invoice(event, order, ignore_payments=False):
and (
event.settings.get('invoice_generate') in ('user', 'True')
or (
event.settings.get('invoice_generate') == 'paid'
event.settings.get('invoice_generate') in ('paid', 'user_paid')
and order.status == Order.STATUS_PAID
)
) and (