Cancelling events: Allow to create manual and partial refunds

This commit is contained in:
Raphael Michel
2020-03-16 16:00:44 +01:00
parent d61e8a9204
commit b664cc712a
5 changed files with 106 additions and 14 deletions

View File

@@ -534,6 +534,15 @@ class EventCancelForm(forms.Form):
initial=True,
required=False
)
manual_refund = forms.BooleanField(
label=_('Create manual refund if the payment method odes not support automatic refunds'),
widget=forms.CheckboxInput(attrs={'data-display-dependency': '#id_auto_refund'}),
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.')
)
keep_fee_fixed = forms.DecimalField(
label=_("Keep a fixed cancellation fee"),
max_digits=10, decimal_places=2,

View File

@@ -33,6 +33,7 @@
<fieldset>
<legend>{% trans "Refund options" %}</legend>
{% bootstrap_field form.auto_refund layout="control" %}
{% bootstrap_field form.manual_refund layout="control" %}
{% bootstrap_field form.keep_fee_fixed layout="control" %}
{% bootstrap_field form.keep_fee_percentage layout="control" %}
{% bootstrap_field form.keep_fees layout="control" %}