# 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
{% include "rh/include/employe.html" %}
{% for dossier in dossiers %}
<h4>{{ dossier }}</h4>
- {% if forloop.counter0 == 0 %}
- {% include "rh/include/dossier.html" %}
- {% else %}
- <p><a target="_blank" href="{% url dossier_apercu dossier.id %}">consulter</a></p>
- {% endif %}
+ {% include "rh/include/dossier.html" %}
<hr />
{% endfor %}
{% endblock %}