{# templates/app/achats/index.html.twig #} {% extends 'app/base.html.twig' %} {% set moisNoms = ['', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'] %} {% block title %}Achats {{ moisNoms[mois] }} {{ annee }} — GestRestoSco {% endblock %} {% block body %} {# ── En-tête ───────────────────────────────────────────────────────── #}
Aucun achat pour {{ moisNoms[mois] }} {{ annee }} {% if fournisseur %} · {{ fournisseur }} {% endif %}
| Date | Fournisseur | Description | Montant HT | Montant TTC |
|---|---|---|---|---|
| {{ av.date_achat|date('d/m/Y') }} | {{ av.fournisseur }} | {{ av.description }} | {{ (av.montant_ht ?: 0)|number_format(2, ',', ' ') }} € | {{ av.montant_total|number_format(2, ',', ' ') }} € |
| Total avoirs : | {{ totalAvoirsHT|number_format(2, ',', ' ') }} € | {{ totalAvoirsTTC|number_format(2, ',', ' ') }} € | ||
| Net achats (après avoirs) : | {{ (totalHT + totalAvoirsHT)|number_format(2, ',', ' ') }} € | {{ (totalTTC + totalAvoirsTTC)|number_format(2, ',', ' ') }} € | ||
| Fournisseur | Description | Montant TTC | Déclaré le | Action |
|---|---|---|---|---|
| {{ av.fournisseur }} | {{ av.description }} | {{ av.montant_ttc|number_format(2, ',', ' ') }} € | {{ av.date_creation|date('d/m/Y') }} | Appliquer |