{% for message in app.flashes('success-traitements-' ~ client.id) %}
{{ message }}
{% endfor %}
Liste des traitements
{% for traitement in client.getTraitements()|sort((a, b) => b.id <=> a.id) %} {% else %} {% endfor %}
Date de lancement Traitement demandé Statut Livrables Actions
{{ traitement.getDateStart()|date('d/m/Y H\\hi') }} {{ traitement.getClientLivrable().getLivrable().getTitre() }} {{ traitement.getStatutLabel()|raw }} {% if traitement.getData()|default %}
    {% set slug = traitement.getClientLivrable().getLivrable().getSlug() %} {% if slug == 'tdb-annuel' %} {#
  • {% if traitement.statut == 'traite' %} {% endif %} {{ traitement.getClientLivrable().getLivrable().getTitre() }} % if traitement.statut in ['started','traite', 'livre'] %} {% endif %}
  • #} {% if traitement.getData()['rapport-annuel'] is defined %}
  • {% if traitement.statut == 'traite' %} {% endif %} Rapport annuel {% if traitement.statut in ['traite', 'livre'] %} {% endif %}
  • {% if traitement.getData()['video'] is defined %}
  • {% if traitement.statut == 'traite' %} {% endif %} Vidéo {% if traitement.statut in ['traite', 'livre'] %} {% endif %}
  • {% endif %} {% endif %} {% elseif slug == 'tdb-periodique' %}
  • {% if traitement.statut == 'traite' %} {% endif %} {{ traitement.getClientLivrable().getLivrable().getTitre() }} {% if traitement.statut in ['started','traite', 'livre'] %} {% if traitement.getData()['tdb-periodique'].pbix is defined %} {% endif %} {% if traitement.getData()['tdb-periodique'].pdf is defined %} {% endif %} {% endif %}
  • {% if traitement.getData()['rapport-periodique'] is defined %}
  • {% if traitement.statut == 'traite' %} {% endif %} Rapport périodique {% if traitement.statut in ['traite', 'livre'] %} {% endif %}
  • {% endif %} {% endif %} {# {% for traitement in fec.getFecTraitements() %}
  • {% if fec.statut == 'traite' %} {% endif %} {{ traitement.getClientLivrable().getLivrable().getTitre() }} {% if traitement.getClientLivrable().getLivrable().getSlug() == 'tdb-power-bi' and fec.statut in ['valide', 'traite', 'livre'] %} {% if fec.statut in ['traite', 'livre'] %} {% endif %} {% endif %} {% if traitement.getClientLivrable().getLivrable().getSlug() == 'rapport-analyse' and fec.statut in ['valide', 'traite', 'livre'] %} {% if fec.statut in ['traite', 'livre'] %} {% endif %} {% endif %} {% if traitement.getClientLivrable().getLivrable().getSlug() == 'video' and fec.statut in ['traite', 'livre'] %} {% endif %}
  • {% endfor %} #}
{% if traitement.statut == 'traite' %}

Une fois vos modifications réalisées, patientez un court instant (<1 minute) pour que les PDF soient regénérés.

{% endif %}
{% endif %}
{% set route = modal ? 'app_traitements_modal_delete' : 'app_traitements_delete' %} {{ include('traitement/_delete_form.html.twig') }}
Aucun traitement n'a encore été demandé
Demander un traitement
{% for clientLivrable in client.getClientLivrables() %} {% set is_ok = true %} {% set message = '' %} {# Vérification si au moins un FEC a été saisi #} {% set fecs = client.getFecs()|sort((a, b) => b.getDateCloture() <=> a.getDateCloture()) %} {% if fecs|length == 0 %} {% set is_ok = false %} {% set message = 'Vous devez déposer au moins un FEC pour pouvoir demander ce traitement.' %} {# Si des FECs existent, on vérifie selon le type de livrable #} {% else %} {% if clientLivrable.getLivrable().getId() == 2 %} {# Vérifier si le paramètre "budget" est activé pour ce livrable #} {% set budgetParam = clientLivrable.getParams()['budget']|default(false) %} {% if budgetParam %} {# Si le paramètre budget est activé, vérifier si un budget_file a été saisi #} {% set latestFec = client.getMostRecentClosedFec() %} {% if latestFec.getBudgetData() is null %} {% set is_ok = false %} {% set message = 'Vous devez saisir un budget prévisionnel pour le FEC le plus récent.' %} {% endif %} {% endif %} {% endif %} {% endif %}

{{ clientLivrable.livrable.getTitre() }}

{% if clientLivrable.getParams() is not empty %}
{% for paramSlug, paramValue in clientLivrable.getParams() %} {% for defParam in clientLivrable.getLivrable().params.params %} {% if defParam.slug == paramSlug %}

✔ {{ defParam.summary_name is defined ? defParam.summary_name : defParam.name }} {% if defParam.type == 'select' and defParam.choices is defined %} {% for choice in defParam.choices %} {% if paramValue == choice.value %} : {{ choice.label }} {% endif %} {% endfor %} {% elseif defParam.type == 'select' and defParam.source is defined %} {% for source in sources[defParam.source] %} {% if source.value == paramValue %} : {{ source.label }} {% endif %} {% endfor %} {% elseif defParam.type == 'boolean' %} {% else %} {# Si paramValue est un tableau, l'afficher correctement #} {% if paramValue is iterable %} : {{ paramValue|join(', ') }} {% else %} : {{ paramValue }} {% endif %} {% endif %}

{% endif %} {% endfor %} {% endfor %}
{% else %}

Aucun paramètre sélectionné pour ce livrable.

{% endif %} {% if is_ok %} {% set status = (syncStatus|filter(e => e.id == clientLivrable.id)|first) %} {% if status is defined and not status.synced %}
Vos données semblent ne pas encore être toutes disponibles. Veuillez patienter quelques minutes avant de pouvoir les visualiser ou lancer un traitement.
{% else %} Consulter Générer un rapport commenté

Lien de consultation client :

{% endif %} {% else %}

{{ message }}

{% endif %}
{% else %}

Aucun livrable disponible pour ce client. Rendez-vous dans les paramètres pour activer les livrables souhaités.

{% endfor %}