{% extends "base.html.twig" %} {% block title %}Devis - Nouveau {% endblock %} {% block stylesheets %} {% endblock %} {% block body %}
{% for client in clients %} {% endfor %} {% for compo in composants %} {% endfor %} {% for pc in pcs %} {% endfor %} {% for item in laptops %} {% endfor %}
Total HT : {% if devis is defined %} {{ devis.getTotalHT(tva) }} {% else %} 0 {% endif %}
TVA : {{ tva }} %
Total TTC : {% if devis is defined %} {{ devis.getTotalTTC() }} {% else %} 0 {% endif %}

Date de la commande: {{ date }}

Reference Devis : {{ num }}

{% if devis is defined %} {% for item in devis.pj %}
{{ item }}
{{ item.originalName }}
{% endfor %} {% endif %}

{% if devis is defined %} {% for article in devis.getArticles() %} {{ article.type }} {% if article.isComposant() %} {% set compo = compoRepo.findOneByConcat(article.article.__toString()) %} {% include "reparations/templates/devisLine.html.twig" with { qte : article.quantite, tva :tva, id : loop.index, compo : compo} %} {% set compo = null %} {% elseif article.isPc() %} {% if app.user.is('dev') %} {% endif %} {% set pc = pcRepo.findOneBy({'modele' : article.article.getModele() }) %} {% include "reparations/templates/devisLine.html.twig" with { qte : article.quantite,tva :tva, id : loop.index, pc : pc} %} {% set pc = null %} {% elseif article.isLaptop() %} {% set compo = laptopRepo.findOneByConcat(article.article.__toString()) %} {% include "reparations/templates/devisLine.html.twig" with { qte : article.quantite, tva :tva, id : loop.index, compo : compo} %} {% set compo = null %} {% else %} {% include "reparations/templates/devisLine.html.twig" with {presta : article.article, tva :tva, id : loop.index} %} {% endif %} {% endfor %} {% endif %}
Description Quantité HT Unitaire TTC Unitaire Total TTC
Annuler
{% include 'devis/commande/modals.html.twig' %}
{% endblock %}