forked from CGM_Public/pretix_original
Allow to keep a few per ticket when cancelling an event
This commit is contained in:
@@ -641,6 +641,12 @@ class EventCancelForm(forms.Form):
|
||||
max_digits=10, decimal_places=2,
|
||||
required=False
|
||||
)
|
||||
keep_fee_per_ticket = forms.DecimalField(
|
||||
label=_("Keep a fixed cancellation fee per ticket"),
|
||||
help_text=_("Free tickets and add-on products are not counted"),
|
||||
max_digits=10, decimal_places=2,
|
||||
required=False
|
||||
)
|
||||
keep_fee_percentage = forms.DecimalField(
|
||||
label=_("Keep a percentual cancellation fee"),
|
||||
max_digits=10, decimal_places=2,
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
{% bootstrap_field form.gift_card_expires layout="control" %}
|
||||
{% bootstrap_field form.gift_card_conditions layout="control" %}
|
||||
{% bootstrap_field form.keep_fee_fixed layout="control" %}
|
||||
{% bootstrap_field form.keep_fee_per_ticket layout="control" %}
|
||||
{% bootstrap_field form.keep_fee_percentage layout="control" %}
|
||||
{% bootstrap_field form.keep_fees layout="control" %}
|
||||
</fieldset>
|
||||
|
||||
@@ -2082,6 +2082,7 @@ class EventCancel(EventPermissionRequiredMixin, AsyncAction, FormView):
|
||||
giftcard_expires=form.cleaned_data.get('gift_card_expires'),
|
||||
giftcard_conditions=form.cleaned_data.get('gift_card_conditions'),
|
||||
keep_fee_fixed=form.cleaned_data.get('keep_fee_fixed'),
|
||||
keep_fee_per_ticket=form.cleaned_data.get('keep_fee_per_ticket'),
|
||||
keep_fee_percentage=form.cleaned_data.get('keep_fee_percentage'),
|
||||
keep_fees=form.cleaned_data.get('keep_fees'),
|
||||
send=form.cleaned_data.get('send'),
|
||||
|
||||
Reference in New Issue
Block a user