# date_annulation = models.DateField(null=True, blank=True)
# user_annulation = models.IntegerField(null=True, blank=True)
+ def montant_mois(self):
+ return round(self.montant / 12, 2)
+
+ def taux_devise(self):
+ return self.devise.tauxchange_set.order_by('-annee').all()[0].taux
+
+ def montant_euro(self):
+ return round(float(self.montant) / float(self.taux_devise()), 2)
+
+ def montant_euro_mois(self):
+ return round(self.montant_euro() / 12, 2)
+
class JustificationPoste(models.Model):
pass