{% set active = "client" %} {% extends 'base.html.twig' %} {% block title %}Souscription{% endblock %} {% block body %}

Souscription

Id {{ souscription.id }}
Date {{ souscription.date ? souscription.date|date('Y-m-d H:i:s') : '' }}
Nombres d'heure {{ souscription.nbheure }} H
Nombres heure restantes {{ souscription.getNbHeureRemaining }} H
Prix {{ souscription.prix }} €
{% for heure in souscription.heureQuotas %} {% set devis = heure.service.devis %} {% if devis.hasReparation() %} {% set item = devis.reparation %} {% set type = 'Réparation' %} {% elseif devis.hasIntervention() %} {% set item = devis.intervention %} {% set type = item.type %} {% endif %} {% else %} {% endfor %}
Date Client Type Numéro de référence Service Heure
{{ item.getFormattedDate() }} {{ item.client }} {{ type | replace({'_' : ' '}) | capitalize }} {{ item }} {{ heure.service }} {{ heure.heure }} H
{% if app.user.is('dev') %} Modifier {% endif %}
Il n'y a pas d'intervention
Retour
{% endblock %}