{% set trans_day_hash = { Jan : 'Janvier', Feb : 'Février', Mar : 'Mars', Apr : 'Avril', May : 'Mai', Jun : 'Juin', Jul : 'Juillet', Aug : 'Août', Sep : 'Septembre', Oct : 'Octobre', Nov : 'Novembre', Dec : 'Décembre' } %} {% extends 'base.html.twig' %} {% block facture %} {% endblock %} {% block title %} Préavi pour {{ trans_day_hash[dates[0]|date('M')] }} {{ dates[0]|date('Y') }} {% if dates[2] %} pour {{ dates[2] }} {% endif %} {% endblock %} {% block body %}

Préavi pour {{ trans_day_hash[dates[0]|date('M')] }} {{ dates[0]|date('Y') }} {% if dates[2] %} pour {{ dates[2] }} {% endif %}

{% for compte,tableau in actionsPeriode%}

{{ compte }}

{% for intituleFormation,others in tableau %} {% set total = 0 %} {% set jours = 0 %}

{{ intituleFormation }}

{% for codeAction,rest in others %}
Code Action : {{ codeAction }}
{% for bonCommande,values in rest %} {% if bonCommande %}
Bon de Commande : {{ bonCommande }}
{% else %}
Bon de Commande : Sans bon
{% endif %}
{% for action in values %} {% set total = total + action[4] %} {% if action[3] != 0 %} {% set jours = jours + 1 %} {% endif %} {% endfor %}
Semaine Date de l'intervention Code Action Formateur Nombre d'heures Tarif contracté
{{ action[0] }} {{ action[1] ? action[1]|date('d/m/Y') : '' }} {{ codeAction }} {{ action[2] }} {{ action[3] }} {% if action[3] != 0 %} {{ action[4] }} {% else %} 0 {% endif %}
Total
{{ jours }} Jours / {{ jours * 7 }} heures
{{ total }}€

{% endfor %} {% endfor %} {% endfor %} {% endfor %}
{% endblock %}