{% extends "base.html.twig" %} {% block body %} {% set url = "" %} {% if app.user.is('admin') %} {% set url = '?client='~client.id %} {% endif %}
Retour
Réparations :
{% if reparations | length > 0 %}
{% for item in reparations %} {% endfor %}
Date Numero Statut Equipement Problèmes Heures Montant TTC
{% if item.status.id in [15,22,4] %} {% else %} {% endif %} {{ item.date }} {{ item.numero }} {% if item.hasIntervention %}
{{ item.intervention }} {% endif %}
{{ item.status }}
{{ item.materiel }} {% if item.equipement2 is not empty %}
{{ item.equipement2 }} {% endif %} {% if item.equipement3 is not empty %}
{{ item.equipement3 }} {% endif %} {% if item.equipement4 is not empty %}
{{ item.equipement4 }} {% endif %}
{% for pb in item.problemes %} {{ pb }} {% if loop.index < item.problemes | length %}
{% endif %} {% endfor %}
{% set sum = 0 %} {% if item.getValidateDevis() != null %} {% for item in item.getValidateDevis().articles %} {% if item.isService() %} {% set sum = sum + item.quantite %} {% endif %} {% endfor %} {{ sum }} H {% else %} N/C {% endif %} {% if item.getValidateDevis() != null %} {{ item.getValidateDevis().getTotalTTC() }} € {% else %} N/C {% endif %}
{% else %}

Aucune réparation n'a été effectué.

{% endif %} {% endblock %}