{% 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}}
Ref. |
Date de création |
Montant {% if entite is not empty %} {{entite.devise}} {% endif %} |
PVD |
Region |
Département |
Commune |
Auteur |
Statut |
Date de validation |
{% set nbApprov = 0 %}
{% set mtApprov = 0 %}
{% set nbAtt = 0 %}
{% set mtAtt = 0 %}
{% set nbRejet = 0 %}
{% set mtRejet = 0 %}
{% for appro in appros %}
{{ appro.id }} |
{{ appro.dateCreation|date("d/m/Y H:i") }} |
{{ appro.montant|number_format(0, '', ' ') }} |
{{ appro.agence.nom }} |
{% if appro.agence.commune is not empty %}
{{appro.agence.commune.departement.region.nom}} |
{% else %}
{{appro.agence.departement.region.nom}} |
{% endif %}
{% if appro.agence.commune is not empty %}
{{appro.agence.commune.departement.nom}} |
{% else %}
{{appro.agence.departement.nom}} |
{% endif %}
{% 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") }} |
{% endfor %}
En attente |
{{nbAtt}} |
{{mtAtt}} |
Rejet |
{{nbRejet}} |
{{mtRejet}} |
Validé |
{{nbApprov}} |
{{mtApprov}} |
{% endblock %}
{% endblock %}