{% block body %}
{% if (lignes is defined) and (lignes is not null) %}
{% for l in lignes %} {% set totalHTLigne = l.getTotalHTLigne() %} {% set totalTVALigne =l.getTotalTVALigne() %} {% set totalTTCLigne = l.getTotalTTCLigne() %} {% endfor %}
Article Qté / Durée Taux TVA Prix HT Remise Total HT Total TVA Total TTC
{{l.article.description}} {{l.quantite}} {{l.unite.abrege}} {{l.tauxtva.tauxtva}} % {{l.prixht|number_format('2', ',', ',')}} € {{l.remise|number_format('2', ',', ',') }} €{{totalHTLigne|number_format('2', ',') }} €{{ totalTVALigne | number_format('2', ',') }} € {{totalTTCLigne | number_format('2', ',')}} €
{# Tableau des totaux #}
Totaux
Total HT : {{totalHT | number_format('2', ',')}} €
Total TVA : {{totalTVA | number_format('2', ',')}} €
Total TTC : {{totalTTC | number_format('2', ',')}} €
Remise globale : {{remiseGlobale| number_format('2', ',')}} €
Déjà payé : {{totalAcomptes| number_format('2', ',')}} €
Reste à payer : {{(totalTTC-totalAcomptes)|number_format('2', ',')}} €
{% else %}

Aucune ligne n'a encore été enregistrée pour ce document.

{% endif %}
{% endblock %}