{% extends 'base.html.twig' %} {% block body %}
{% for message in app.flashes('error') %}
{{message}}
{% endfor %} {% for message in app.flashes('warning') %}
{{message}}
{% endfor %} {% for message in app.flashes('success') %}
{{message}}
{% endfor %}
Récapitulatif commande
{% set TotalFournitureHt = 0 %} {% set Vat1FournitureHt = 0 %} {% set Vat2FournitureHt = 0 %} {% set Vat3FournitureHt = 0 %} {% for orderline in orderlines%} {% if orderline.vatamount == VAT1 %} {% set Vat1FournitureHt = Vat1FournitureHt+(((orderline.unitpriceht * orderline.qte)*orderline.vatamount)/100) %} {% endif %} {% if orderline.vatamount == VAT2 %} {% set Vat2FournitureHt = Vat2FournitureHt+(((orderline.unitpriceht * orderline.qte)*orderline.vatamount)/100) %} {% endif %} {% if orderline.vatamount == VAT3 %} {% set Vat3FournitureHt = Vat3FournitureHt+(((orderline.unitpriceht * orderline.qte)*orderline.vatamount)/100) %} {% endif %} {% set TotalFournitureHt = TotalFournitureHt + (orderline.unitpriceht * orderline.qte) %} {% endfor %}
P.U HT Qté TOTAL HT TVA
{{orderline.nameProduct}} - {{orderline.emplacement}} {{orderline.unitpriceht|number_format(2, ',', ' ')}} {{orderline.qte}} {{(orderline.unitpriceht * orderline.qte)|number_format(2, ',', ' ')}} {{(((orderline.unitpriceht * orderline.qte)*orderline.vatamount)/100)|number_format(2, ',', ' ')}}
{{ form_start(form)}}
Total fourniture HT
TVA Fourniture
Pose HT
{{ form_widget(form.pose1) }}
Pose HT
{{ form_widget(form.pose2) }}
Pose HT
{{ form_widget(form.pose3) }}
{{ form_rest(form) }}
Total HT fourniture + pose
Total TVA fourniture + pose
Total TVA
Total TTC avec pose
{{ form_end(form) }}
{% endblock %} {% block javascripts %}{% endblock %}