]> git.parisson.com Git - teleforma.git/commitdiff
add annuelle progressive to payment : https://trackers.pilotsystems.net/prebarreau...
authorYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 25 Jan 2023 13:13:02 +0000 (14:13 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 25 Jan 2023 13:13:02 +0000 (14:13 +0100)
teleforma/models/crfpa.py

index bbf58fae4dabbb640ec1c16cf14bdc826803e0a8..233cb059f8f9c3aba0435001a1d263e0bdcdc972 100755 (executable)
@@ -325,7 +325,7 @@ class Student(models.Model):
         payments = None
         # Full or partial ?
         if self.payment_schedule == 'split':
-            if period.name in ('Semestrielle', 'Annuelle'):
+            if period.name in ('Semestrielle', 'Annuelle', 'Annuelle progressive'):
                 part = int(total * 0.25)
                 remaining = total - 3 * part
                 payments = ((remaining, tomorrow),)
@@ -365,7 +365,7 @@ class Student(models.Model):
 
         # Handle oral date
         oral_date = None
-        if period.name in ('Semestrielle', 'Annuelle'):
+        if period.name in ('Semestrielle', 'Annuelle', 'Annuelle progressive'):
             if tomorrow.month <= 6:                    
                 # Late registration
                 oral_date = endofmonth(tomorrow.year, 6)