]> git.parisson.com Git - teleforma.git/commitdiff
re-add period fees
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 16 Jan 2026 08:11:25 +0000 (09:11 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 16 Jan 2026 08:11:25 +0000 (09:11 +0100)
teleforma/models/core.py
teleforma/models/crfpa.py

index b6289748d6b62da700f788aa35fd93fdf96e3852..8de0783fcb359261782977b60acb3dd3d3299a01 100644 (file)
@@ -210,9 +210,16 @@ class Period(models.Model):
                                         verbose_name="Récupérer les séminaires de correction depuis",
                                         help_text="Permet d'afficher les séminaires de corrections d'une autre période. Il faut aussi cocher la case relative dans les matières pour autoriser celles-ci à partager leur contenu.",
                                         blank=True, null=True, on_delete=models.SET_NULL)
+    fascicule_fee = models.FloatField(
+        "Frais d'envoi de fascicules", default=110,
+        help_text="Montant en € ajouté automatiquement si l'étudiant choisit l'envoi de fascicules")
+    oral_option_fee = models.FloatField(
+        "Frais option oral de langue", default=250,
+        help_text="Montant en € ajouté automatiquement si l'étudiant choisit l'option oral de langue")
 
     def __str__(self):
         return self.name
+    
     class Meta(MetaCore):
         db_table = app_label + '_' + 'period'
         verbose_name = _('period')
index a2561df9531ae9cdffd8a717ed73a450aea0db15..35f77ca304f624840be6b286e5f176811c1c8028 100644 (file)
@@ -216,6 +216,12 @@ class Student(models.Model):
     stop_retractation = models.BooleanField('En accédant au contenu de la plateforme, je renonce de ce fait à mon droit de rétractation.', default=False)
     stop_retractation_date = models.DateTimeField('Date de renonciation', blank=True, null=True)
 
+    class Meta(MetaCore):
+        db_table = app_label + '_' + 'student'
+        verbose_name = _('Student')
+        verbose_name_plural = _('Students')
+        ordering = ['user__last_name', '-date_subscribed']
+
     def __str__(self):
         try:
             return self.user.last_name + ' ' + self.user.first_name
@@ -409,13 +415,6 @@ class Student(models.Model):
         """ closing date of student period """
         return self.period.date_close_accounts
 
-    
-    class Meta(MetaCore):
-        db_table = app_label + '_' + 'student'
-        verbose_name = _('Student')
-        verbose_name_plural = _('Students')
-        ordering = ['user__last_name', '-date_subscribed']
-
 
 def update_balance_signal(sender, instance, *args, **kwargs):
     if sender is Student: