allow that you dont need a resolution if amount > 30

This commit is contained in:
2023-10-27 11:16:56 +00:00
parent 082ad8f0b9
commit 37b9375389

View File

@@ -112,12 +112,14 @@ class BillCreateForm(forms.ModelForm):
)
# check that amount is valid because invalid amount is a NoneType.
'''
if amount:
if amount > 30 and resolution == "":
raise ValidationError(
"Die Beschlussnummer fehlt, weil der Betrag über 30€ beträgt "
f"(Betrag: {amount}€)."
)
'''
if payer == "M":
if name == "" or iban == "":