{% set totalHT = 0 %} {% set totalTTC = 0 %} {% for facture in factures %} {% set statut = facture.statut %} {% if statut in ['Acompte', 'Validée', 'Payé'] %} {% set totalHT = totalHT + (facture.totalApresRemise ?: facture.totalHT) %} {% set totalTTC = totalTTC + facture.totalTTC %} {% endif %} {% else %} {% endfor %}
Id Client Date de facturation Total HT Total TTC Statut
{{ facture.displayId }} {{ facture.societe ? facture.societe.nom : '' }} {% if facture.dateFacturation %} {{ facture.dateFacturation|date('d/m/Y') }} {% endif %} {{ (facture.totalApresRemise ?: facture.totalHT)|number_format(2, '.', '') }} € {{ facture.totalTTC|number_format(2, '.', '') }} € {{ statut }}
Aucune facture.
Totaux {{ totalHT|number_format(2, '.', '') }} € {{ totalTTC|number_format(2, '.', '') }} €