mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Allow to only require the name in the invoice address
This commit is contained in:
@@ -436,6 +436,14 @@ class InvoiceSettingsForm(SettingsForm):
|
||||
required=False,
|
||||
widget=forms.CheckboxInput(attrs={'data-checkbox-dependency': '#id_invoice_address_asked'}),
|
||||
)
|
||||
invoice_name_required = forms.BooleanField(
|
||||
label=_("Require customer name"),
|
||||
required=False,
|
||||
widget=forms.CheckboxInput(
|
||||
attrs={'data-checkbox-dependency': '#id_invoice_address_asked',
|
||||
'data-inverse-dependency': '#id_invoice_address_required'}
|
||||
),
|
||||
)
|
||||
invoice_address_vatid = forms.BooleanField(
|
||||
label=_("Ask for VAT ID"),
|
||||
help_text=_("Does only work if an invoice address is asked for. VAT ID is not required."),
|
||||
|
||||
Reference in New Issue
Block a user