Event cancellation: Allow allow creating manual refunds for all orders (#2526)

This commit is contained in:
Maico Timmerman
2022-03-18 14:05:32 +01:00
committed by GitHub
parent 5bde98e349
commit 55752a4319
4 changed files with 74 additions and 42 deletions

View File

@@ -749,16 +749,17 @@ class EventCancelForm(forms.Form):
auto_refund = forms.BooleanField(
label=_('Automatically refund money if possible'),
initial=True,
required=False
required=False,
help_text=_('Only available for payment method that support automatic refunds.')
)
manual_refund = forms.BooleanField(
label=_('Create manual refund if the payment method does not support automatic refunds'),
widget=forms.CheckboxInput(attrs={'data-display-dependency': '#id_auto_refund'}),
label=_('Create refund in the manual refund to-do list'),
initial=True,
required=False,
help_text=_('If checked, all payments with a payment method not supporting automatic refunds will be on your '
'manual refund to-do list. Do not check if you want to refund some of the orders by offsetting '
'with different orders or issuing gift cards.')
help_text=_('Manual refunds will be created which will be listed in the manual refund to-do list. '
'When combined with the automatic refund functionally, only payments with a payment method not '
'supporting automatic refunds will be on your manual refund to-do list. Do not check if you want '
'to refund some of the orders by offsetting with different orders or issuing gift cards.')
)
refund_as_giftcard = forms.BooleanField(
label=_('Refund order value to a gift card instead instead of the original payment method'),