mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
There is not always an error
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
@ -671,9 +671,9 @@ class ClubAddMemberView(ProtectQuerysetMixin, ProtectedCreateView):
|
||||
.format(form.instance.club.membership_end))
|
||||
error = True
|
||||
|
||||
if credit_amount:
|
||||
if credit_amount and not SpecialTransaction.validate_payment_form(form):
|
||||
# Check that special information for payment are filled
|
||||
error = SpecialTransaction.validate_payment_form(form) or error
|
||||
error = True
|
||||
|
||||
return not error
|
||||
|
||||
|
Reference in New Issue
Block a user