From: Jean-Philippe Caissy Date: Mon, 12 Mar 2012 16:51:04 +0000 (-0500) Subject: #2761 rémunération en cours : calculé avec régime de travail X-Git-Tag: 1.6.5~209 X-Git-Url: http://git.auf.org/?p=auf_rh_dae.git;a=commitdiff_plain;h=626beb4d5e2e67187766ffa3c9e45893479d9586;hp=1035822c653024b65b3e7fe6999f104fce18a5e1 #2761 rémunération en cours : calculé avec régime de travail --- diff --git a/project/rh/models.py b/project/rh/models.py index 3437b87..33b6b61 100644 --- a/project/rh/models.py +++ b/project/rh/models.py @@ -763,6 +763,9 @@ class Remuneration_(RemunerationMixin): def montant_mois(self): return round(self.montant / 12, 2) + def montant_avec_regime(self): + return round(self.montant * (self.dossier.regime_travail/100), 2) + def taux_devise(self): if self.devise.code == "EUR": return 1 diff --git a/project/rh/templates/rh/include/remunerations.html b/project/rh/templates/rh/include/remunerations.html index b5a74a4..4f0de77 100644 --- a/project/rh/templates/rh/include/remunerations.html +++ b/project/rh/templates/rh/include/remunerations.html @@ -13,7 +13,7 @@ {{ r.type }} {{ r.type.nature_remuneration }} - {{ r.montant|floatformat:2 }} {{ r.devise.code }} + {{ r.montant_avec_regime|floatformat:2 }} {{ r.devise.code }} {{ r.commentaire|default:"" }} {{ r.date_debut }} {{ r.date_fin|default:"indéterminée" }}