{% extends 'base.html.twig' %} {% block body %} {##} {% block content %}
{% if entite is not empty %}

{{entite.nom}}

{% endif %} {% if agence is not empty %}

AGENCE: {{agence}}

{% endif %} {% if distributeur is not empty %}

Distributeur: {{distributeur.nom}}

{% endif %}

Approvisionements POS {{datetxt}}

{% set nbApprov = 0 %} {% set mtApprov = 0 %} {% set nbAtt = 0 %} {% set mtAtt = 0 %} {% set nbRejet = 0 %} {% set mtRejet = 0 %} {% for appro in appros %} {% if appro.agence.commune is not empty %} {% else %} {% endif %} {% if appro.agence.commune is not empty %} {% else %} {% endif %} {% endfor %}
Ref. Date de création Montant {% if entite is not empty %} {{entite.devise}} {% endif %} PVD Region Département Commune Auteur Statut Date de validation
{{ appro.id }} {{ appro.dateCreation|date("d/m/Y H:i") }} {{ appro.montant|number_format(0, '', ' ') }} {{ appro.agence.nom }} {{appro.agence.commune.departement.region.nom}} {{appro.agence.departement.region.nom}} {{appro.agence.commune.departement.nom}} {{appro.agence.departement.nom}} {% if appro.agence.commune is not empty %} {{ appro.agence.commune.nom }} {% else %} {% endif %} {{appro.auteur}} {% if appro.status == 0 or appro.status == 3 %} En attente de validation {% set nbAtt = nbAtt + 1 %} {% set mtAtt = mtAtt + appro.montant %} {% elseif appro.status == 1 %} {% set nbApprov = nbApprov + 1 %} {% set mtApprov = mtApprov + appro.montant %} Validé par {{appro.auteurValidation}} {% elseif appro.status == 3 %} Approuvé par {{appro.auteurApprobation}} {% elseif appro.status == 2 %} Rejeté par {{appro.auteurValidation}} {% set nbRejet = nbRejet + 1 %} {% set mtRejet = mtRejet + appro.montant %} {% endif %} {{ appro.dateValidation|date("d/m/Y H:i") }}
En attente {{nbAtt}} {{mtAtt}}
Rejet {{nbRejet}} {{mtRejet}}
Validé {{nbApprov}} {{mtApprov}}
{% endblock %} {% endblock %}