Skip to content

Commit

Permalink
Protection
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Jan 12, 2020
1 parent bdb2ac7 commit 7cfc504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generation/export_filoue.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def execute(self, text):
"heures-realisees": "%04.02f" % heures_realisees,
"total-facture": "%06.02f" % total_facture,
"tarif-horaire": "%02.02f" % ((total_facture / heures_facturees) if heures_facturees else 0),
"taux-effort": "%01.02f" % facture_heures.taux_effort,
"taux-effort": ("%01.02f" % facture_heures.taux_effort) if facture_heures.taux_effort else None,
"premier-jour": max(self.start, min([contrat.debut for contrat in inscrit.get_inscriptions() if contrat.debut and not contrat.preinscription])).strftime("%d/%m/%Y"),
"dernier-jour": min(self.end, max([(contrat.GetFin() if contrat.GetFin() else self.end) for contrat in inscrit.get_inscriptions() if contrat.debut and not contrat.preinscription])).strftime("%d/%m/%Y"),
}
Expand Down

0 comments on commit 7cfc504

Please sign in to comment.