{% extends 'base.html.twig' %} {% block title %}Tarifs d'indemnités{% endblock %} {% block page_title %}Tarifs d'indemnités{% endblock %} {% block body %}
{% for msg in app.flashes('success') %} {% endfor %}
Indemnités — Tarifs applicables

Ces tarifs servent au calcul automatique du Total à payer en bas de chaque feuille de présence.

{% for tarif in tarifs %} {% endfor %}
Indemnité Tarif (€)
{{ tarif.libelle }} {% if tarif.code == 'repas' %} par repas {% elseif tarif.code == 'deplacement' %} par nuit de déplacement {% elseif tarif.code == 'kilometre' %} par kilomètre (Km VP) {% endif %}
Retour
{# Aperçu du calcul #}
Formule de calcul

Total à payer = (Nb Repas × tarif repas) + (Dépl. NT × tarif déplacement) + (Km VP × tarif kilomètre)

Exemple avec les tarifs actuels :
10 repas × {{ tarifs|filter(t => t.code == 'repas')|first.tarif }} € + 2 dépl. × {{ tarifs|filter(t => t.code == 'deplacement')|first.tarif }} € + 150 km × {{ tarifs|filter(t => t.code == 'kilometre')|first.tarif }} € = {{- (10 * tarifs|filter(t => t.code == 'repas')|first.tarif + 2 * tarifs|filter(t => t.code == 'deplacement')|first.tarif + 150 * tarifs|filter(t => t.code == 'kilometre')|first.tarif)|number_format(2, ',', ' ') }} €

{% endblock %}