devis

{# {{label_recap}}: #}
{% set totalTotalTtc = 0 %} {% set totalTotalHt = 0 %} {% set totalTotalTva = 0 %} {% for produit in produits %} {% set quantity = findkeyarrayobj(produit['id'], quantite) %} {% set totalttc = produit['prix_ttc'] * quantity %} {% set totalTotalTtc = totalTotalTtc + totalttc %} {% set totalht = produit['prix_ht'] * quantity %} {% set totalTotalHt = totalTotalHt + totalht %} {% set totaltva = totalttc - totalht %} {% set totalTotalTva = totalTotalTva + totaltva %} {% endfor %}
Produit Quantite Prix Unitaire Total TTC Total HT Total TVA
{% set lienimage = produit['image'] %} {% if lienimage %} {% else %} {% endif %} {{ produit['produit'] }}{{ quantity }} {{ produit['prix_ttc'] }}€{{ totalttc|number_format(2) }}€{{ totalht|number_format(2) }}€{{ totaltva|number_format(2) }}€
Total HT {{totalTotalHt}}€
Total TVA {{totalTotalTva}}€
Total TTC {{totalTotalTtc}}€