mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-02-25 17:36:31 +00:00
Compare commits
2 Commits
6a1b51dbbf
...
84b16ab603
Author | SHA1 | Date | |
---|---|---|---|
|
84b16ab603 | ||
|
c441a43a8b |
@ -310,8 +310,8 @@ class SogeCredit(models.Model):
|
||||
amount = sum(transaction.total for transaction in self.transactions.all())
|
||||
if 'wei' in settings.INSTALLED_APPS:
|
||||
from wei.models import WEIMembership
|
||||
if not WEIMembership.objects.filter(club__weiclub__year=datetime.date.today().year, user=self.user)\
|
||||
.exists():
|
||||
if not WEIMembership.objects\
|
||||
.filter(club__weiclub__year=self.credit_transaction.created_at.year, user=self.user).exists():
|
||||
# 80 € for people that don't go to WEI
|
||||
amount += 8000
|
||||
return amount
|
||||
|
Loading…
x
Reference in New Issue
Block a user