{% set active = 'client' %} {% extends 'base.html.twig' %} {% block body %}
Retour
{% include 'client/banner.html.twig' with {client :client,banner:true} %} {% if client.getHeureQuotaNoAssign | length > 0 %}

Heures non assignés à une souscription

{% for heure in client.getHeureQuotaNoAssign() %} {% 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 Quantité
{{ item.getFormattedDate() }} {{ item.client }} {{ type | replace({'_' : ' '}) | capitalize }} {% if devis.hasIntervention() %} {{ item }} {% elseif devis.hasReparation() %} {{ item }} {% endif %} {{ heure.service }} {{ heure.heure }} H
{% if not client.hasActiveSouscription() %} Assigner une nouvelle souscription {% else %}
{% endif %}
Il n'y a pas d'heure assignée à cette souscription

{% endif %}

Souscriptions

{% for souscription in client.souscriptions %} {% else %} {% endfor %}
Id Active Date de souscription Forfait Nombre d'heure Nombre d'heures restantes Prix actions
{{ souscription.id }} {% set class = 'rounded text-white p-1 my-2' %} {% if souscription.isOverload() %}
Quota dépassé
{% endif %} {% if souscription.isOver() %}
Terminée
{% else %}
En cours
{% endif %}
{{ souscription.date ? souscription.date|date('Y-m-d H:i:s') : '' }} {{ souscription.forfait }} {{ souscription.nbheure }} H {{ souscription.getNbHeureRemaining() }} H {{ souscription.prix }} € Voir {% if app.user.is('dev') %} Modifier {% endif %}
Aucune souscription existante
{% endblock %} {% block title %} Backoffice - Souscription {% endblock %}