{% extends 'base.html.twig' %} {% block body %}

Détails réparation
N° O.R {{ reparation.numReparation }}
O.R de garantie {% if reparation.deGarantie %}Oui{% else %}Non{% endif %}
Type d'entrée {% if reparation.reparationType %}{{ reparation.reparationType }}{% endif %}
Observations {{ reparation.observations }}
Montant approx. {{ reparation.montantApproximatif }}
Montant de réparation {{ reparation.montantReparation }}
Date d'entrée {% if reparation.dateTimeEntree %}{{ reparation.dateTimeEntree|date('d-m-Y H:i') }}{% endif %}
Date de sortie prévue {% if reparation.dateTimePrevueSortie %}{{ reparation.dateTimePrevueSortie|date('d-m-Y H:i') }}{% endif %}
Date de sortie effective {% if reparation.dateTimeSortie %}{{ reparation.dateTimeSortie|date('d-m-Y H:i') }}{% endif %}
Date de mise à jour {% if reparation.dateMiseAjour %}{{ reparation.dateMiseAjour|date('d-m-Y H:i') }}{% endif %}
Imprimer l'O.R. {% if app.user.aDroit('reparation_validation') %} {% if not reparation.estValide %} Valider la réparation {% else %} {% if magasin.notifiable %} Notifier le client {% endif %} {% if not reparation.estCloturee %} Clôturer la réparation {% endif %} {% endif %} {% endif %}

Retour {% if app.user.aDroit('reparation_modification') %} Modifier {% endif %} {% if app.user.aDroit('reparation_suppression') %} {% endif %}
{{ form_start(delete_form) }} {{ form_end(delete_form) }}
Pièces et interventions ({{ reparation.calculerTotalTtc() }} Dhs)
{% if reparation.produits|length > 0 %}
{% endif %}
{% for note in reparation.produits %}
{% if note.produit %} {{ note.quantite }} x {{ note.produit.reference }} - {{ note.produit.titre }}
{{ note.totalTtc }} Dhs

{% endif %} {% if note.notes %}Commentaire: {{ note.notes }}
{% endif %} Ajouté le {{ note.dateNote|date('d-m-Y') }} par {{ note.utilisateur }}
{% endfor %}
{% if not reparation.estValide %}

Nouvelle pièce/intervention

{% endif %}
Véhicule
{{ reparation.vehicule.reference }}
{{ reparation.vehicule.marque }} - {{ reparation.vehicule.modele }}
{{ reparation.vehicule.immatriculation }}
Client
{{ reparation.client }}
{{ reparation.client.adresse }}
{{ reparation.client.telephone }}
Demande client
{{ reparation.demandeClient }}
Pièces jointes
{% for vente in reparation.pieces %} {% endfor %}
Fichier Titre Date Actions
{{ vente.titre }} {{ vente.dateAjout|date('d-m-Y') }}
Factures
{% for vente in reparation.ventes %} {% endfor %}
N° com. Date Montant TTC Actions
{{ vente.numCommande }} {{ vente.dateCommande|date('d-m-Y') }} {{ vente.totalTtc }}
Devis
{% for vente in reparation.devis %} {% endfor %}
N° Devis. Date Montant TTC Actions
{{ vente.numDevis }} {{ vente.dateDevis|date('d-m-Y') }} {{ vente.totalTtc }}
{% endblock %} {% block javascripts %} {% endblock %}