When an user is registering to the WEI, it doesn't pay the membership + the credit amount. The credit amount is deducted instead
This commit is contained in:
parent
999cc0a6b2
commit
6567d2f8cc
4 changed files with 19 additions and 17 deletions
|
|
@ -855,7 +855,7 @@ class WEIValidateRegistrationView(ProtectQuerysetMixin, LoginRequiredMixin, Crea
|
|||
form.add_error('bus', _("This user didn't give her/his caution check."))
|
||||
return super().form_invalid(form)
|
||||
|
||||
if not registration.soge_credit and user.note.balance < fee + credit_amount:
|
||||
if not registration.soge_credit and user.note.balance + credit_amount < fee:
|
||||
# Users must have money before registering to the WEI.
|
||||
form.add_error('bus',
|
||||
_("This user don't have enough money to join this club, and can't have a negative balance."))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue