{% extends 'base.html.twig' %} {% block body %} {##} {% block content %}
Service {% 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}}

Nombre: {{ nombre|number_format(0, '', ' ') }} Montant: {{ montant|number_format(0, '', ' ') }} {% if entite is not empty %} {{entite.devise}}{% endif %}

{% set nbValid = 0 %} {% set mtValid = 0 %} {% set nbAtt = 0 %} {% set mtAtt = 0 %} {% set nbRejet = 0 %} {% set mtRejet = 0 %}
{% for appro in appros %} {% if appro.status == 0 or appro.status == 3 %} {% set nbAtt = nbAtt + 1 %} {% set mtAtt = mtAtt + appro.montant %} {% elseif appro.status == 1 %} {% set nbValid = nbValid + 1 %} {% set mtValid = mtValid + appro.montant %} {% elseif appro.status == 3 %} Approuvé par {{appro.auteurApprobation}} {% elseif appro.status == 2 %} {% set nbRejet = nbRejet + 1 %} {% set mtRejet = mtRejet + appro.montant %} {% endif %} {% endfor %}
Date de création Auteur Code agence Code caisse Numéro caisse Montant Solde Caisse Avant Solde Caisse Après Solde Agence Avant Solde Agence Après Statut Date de validation Checker
{{ appro.dateCreation|date("d/m/Y H:i:s") }} {{ appro.auteur }} {{ appro.agence ? appro.agence.code : '' }} {{ appro.caisse ? appro.caisse.code : '' }} {{ appro.caisse ? appro.caisse.numero : '' }} {{ appro.montant|number_format(0, '', ' ') }} {{ appro.soldeCaisseAvant|number_format(0, '', ' ') }} {{ appro.sgetSoldeCaisseApres|number_format(0, '', ' ') }} {{ appro.soldeAgenceAvant|number_format(0, '', ' ') }} {{ appro.soldeAgenceApres|number_format(0, '', ' ') }}En attente de validationValidé par {{appro.auteurValidation}}Rejeté par {{appro.auteurValidation}}{% if appro.status == 1 %} {{ appro.dateModification|date("d/m/Y H:i:s") }}{% endif %} {{ appro.checker }}
TOTAUX
En attente {{nbAtt}} {{mtAtt}}
Rejet {{nbRejet}} {{mtRejet}}
Validé {{nbValid}} {{mtValid}}
{% endblock %} {% endblock %}