1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-18 15:20:19 +02:00

Soge Credit changed

This commit is contained in:
Ehouarn
2025-07-15 17:43:21 +02:00
parent 4380414c6b
commit 3af35dc0fc
7 changed files with 59 additions and 54 deletions

View File

@ -121,6 +121,7 @@ class TestWEIRegistration(TestCase):
email="gc.wei@example.com",
membership_fee_paid=12500,
membership_fee_unpaid=5500,
fee_soge_credit=2000,
membership_start=str(self.year + 1) + "-08-01",
membership_end=str(self.year + 1) + "-09-30",
year=self.year + 1,
@ -157,6 +158,7 @@ class TestWEIRegistration(TestCase):
email="wei-updated@example.com",
membership_fee_paid=0,
membership_fee_unpaid=0,
fee_soge_credit=0,
membership_start="2000-08-01",
membership_end="2000-09-30",
date_start="2000-09-01",
@ -678,11 +680,7 @@ class TestWEIRegistration(TestCase):
self.assertTrue(soge_credit.exists())
soge_credit = soge_credit.get()
self.assertTrue(membership.transaction in soge_credit.transactions.all())
self.assertTrue(kfet_membership.transaction in soge_credit.transactions.all())
self.assertTrue(bde_membership.transaction in soge_credit.transactions.all())
self.assertFalse(membership.transaction.valid)
self.assertFalse(kfet_membership.transaction.valid)
self.assertFalse(bde_membership.transaction.valid)
# Check that if the WEI is started, we can't update a wei
self.wei.date_start = date(2000, 1, 1)