From cf87da096f3a30919bca7a851352a2273cdf5a74 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 2 Sep 2021 13:39:17 +0200 Subject: [PATCH] =?UTF-8?q?No=20more=20offer=2080=20=E2=82=AC=20to=20new?= =?UTF-8?q?=20members=20since=20there=20is=20a=20WEI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yohann D'ANELLO --- apps/registration/views.py | 3 --- apps/treasury/models.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/registration/views.py b/apps/registration/views.py index 746c856b..a680996d 100644 --- a/apps/registration/views.py +++ b/apps/registration/views.py @@ -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() diff --git a/apps/treasury/models.py b/apps/treasury/models.py index 2e86245f..0b5948fd 100644 --- a/apps/treasury/models.py +++ b/apps/treasury/models.py @@ -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): """