total += r.montant_euros()
return total
+ def actif(self):
+ today = date.today()
+ return (self.date_debut is None or self.date_debut <= today) \
+ and (self.date_fin is None or self.date_fin >= today) \
+ and not (self.date_fin is None and self.date_debut is None)
+
class Dossier(Dossier_):
__doc__ = Dossier_.__doc__
{% endif %}
</fieldset>
+{% if dossier.actif %}
<fieldset class="module aligned page-break">
<h2>Rémunération en cours</h2>
<table>
{% include "dae/embauche-remun-consulter.html" %}
</table>
</fieldset>
+{% endif %}
{% include "rh/include/pieces.html" %}