{% extends 'base.html' %} {% block title %}Paie & Primes Mensuelles · RH Planète{% endblock %} {% block content %}
Tableau de paie calqué sur le format officiel Planète : annulation stricte de la prime de présence en cas d'absence/sick, calcul automatique des majorations samedis/dimanches.
{% if rows|selectattr("rates_missing")|list %}Barème absent pour une partie de cette période. Aucun forfait automatique non configuré n’est attribué ; vérifiez les montants importés ou ajustez la paie.
{% endif %}| Salarié | Département | Salaire Base | Arrêts & Absences | Prestations W-E | Prime Présence | Overtime Calculé | Net Estimé | Actions & Régularisation |
|---|---|---|---|---|---|---|---|---|
|
{{ r.person.full_name }}
@{{ r.person.username }}
|
{{ r.person.team or 'Général' }} | {{ '{:,.0f}'.format(r.basic_salary).replace(',', ' ') }} Rs | {% if r.sick > 0 or r.unplanned > 0 %} {{ r.sick }} sick / {{ r.unplanned }} abs {% else %} 0 absence {% endif %} |
{% if r.saturdays > 0 or r.sundays > 0 or r.on_call > 0 %}
{% if r.saturdays > 0 %}{{ r.saturdays }} sam. {% endif %}
{% if r.sundays > 0 %}{{ r.sundays }} dim. {% endif %}
{% if r.on_call > 0 %}{{ r.on_call }} ast. {% endif %}
{% if r.hours > 0 %}
{{ r.hours|round(1) }}h d'intervention
{% endif %}
{% else %}
—
{% endif %}
|
{{ '{:,.0f}'.format(r.presence_bonus).replace(',', ' ') }} Rs
{{ '✓ Éligible' if r.presence_eligible else '✗ Supprimée (Sick)' }}
|
{{ '{:,.0f}'.format(r.overtime_adjustment).replace(',', ' ') }} Rs
{% if r.suggested_ot > 0 and r.suggested_ot != r.overtime_adjustment %}
Suggéré : {{ '{:,.0f}'.format(r.suggested_ot) }} Rs
{% endif %}
|
{{ '{:,.0f}'.format(r.net_estimate).replace(',', ' ') }} Rs | |
| Aucun salarié trouvé pour ce mois. | ||||||||
| TOTAL GÉNÉRAL | {{ '{:,.0f}'.format(kpis.total_base).replace(',', ' ') }} Rs | — | {{ '{:,.0f}'.format(kpis.total_presence).replace(',', ' ') }} Rs | {{ '{:,.0f}'.format(kpis.total_overtime).replace(',', ' ') }} Rs | {{ '{:,.0f}'.format(kpis.total_base + kpis.total_presence + kpis.total_overtime).replace(',', ' ') }} Rs | |||