Order change form: No default fee type, use most generic fee type first (Z#23179634) (#4771)

This commit is contained in:
Raphael Michel
2025-01-21 17:48:31 +01:00
committed by GitHub
parent 1f49b577f0
commit 46aefc10f3
2 changed files with 8 additions and 2 deletions

View File

@@ -612,7 +612,13 @@ class OrderFeeChangeForm(forms.Form):
class OrderFeeAddForm(forms.Form):
fee_type = forms.ChoiceField(choices=OrderFee.FEE_TYPES)
fee_type = forms.ChoiceField(
choices=[("", ""), *OrderFee.FEE_TYPES],
help_text=_(
"Note that payment fees have a special semantic and might automatically be changed if the "
"payment method of the order is changed."
)
)
value = forms.DecimalField(
max_digits=13, decimal_places=2,
localize=True,