UI employe
[auf_rh_dae.git] / project / rh / models.py
index 290ba51..520f30d 100644 (file)
@@ -726,14 +726,20 @@ class Dossier_(AUFMetadata, DevisableMixin):
     # DEVISE LOCALE
 
     def get_total_local_charges_salariales(self):
+        devise = self.poste.get_devise()
         total = 0.0
         for r in self.get_charges_salariales():
-            total += r.montant
+            if r.devise != devise:
+                return None
+            total += float(r.montant)
         return total
 
     def get_total_local_charges_patronales(self):
+        devise = self.poste.get_devise()
         total = 0.0
         for r in self.get_charges_patronales():
+            if r.devise != devise:
+                return None
             total += float(r.montant)
         return total