Skip to content
Snippets Groups Projects
Verified Commit cf87da09 authored by ynerant's avatar ynerant
Browse files

No more offer 80 € to new members since there is a WEI


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 7d3f1930
No related branches found
No related tags found
1 merge request!174OAuth2, tests WEI
Pipeline #9025 passed with warnings with stages
in 13 minutes and 39 seconds
......@@ -230,9 +230,6 @@ class FutureUserDetailView(ProtectQuerysetMixin, LoginRequiredMixin, FormMixin,
fee += bde.membership_fee_paid if user.profile.paid else bde.membership_fee_unpaid
kfet = Club.objects.get(name="Kfet")
fee += kfet.membership_fee_paid if user.profile.paid else kfet.membership_fee_unpaid
# In 2020, for COVID-19 reasons, the BDE offered 80 € to each new member that opens a Sogé account,
# since there is no WEI.
fee += 8000
ctx["total_fee"] = "{:.02f}".format(fee / 100, )
ctx["declare_soge_account"] = SogeCredit.objects.filter(user=user).exists()
......
......@@ -303,7 +303,7 @@ class SogeCredit(models.Model):
@property
def amount(self):
return self.credit_transaction.total if self.valid \
else sum(transaction.total for transaction in self.transactions.all()) + 8000
else sum(transaction.total for transaction in self.transactions.all())
def invalidate(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment