{% 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 : {{date}}

Reference Devis : {{num}}

{% if devis is defined %} {% set client = devis.client %}
Nom : {{client}}
Mail: {{client.mail}}
{% if client.rue is not empty %}
Adresse: {{client.rue}}
{{client.cp}} {{client.ville}}
{% endif %} {% if client.telephone is not empty %}
Téléphone : {{client.telephone}}
{% endif %}
{% endif %}
{% if devis is defined %} {% for item in devis.pj %}
{{item}}
{{item.originalName}}
{% endfor %} {% endif %}

{% if devis is defined %} {% for article in devis.getArticles() %} {% 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() %} {% 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 %}