{% extends 'base.html.twig' %} {% block title %}Affaires - James Gestion de Production{% endblock %} {% block body %}
| Client | Chantier | Adresse Chantier | Date Importation | Date Mise à Dispo. | Sem. Planif. | Nb LC | Planifiés | Collés | Actions | {#Regroupements | #}
|---|---|---|---|---|---|---|---|---|---|---|
| {{ affaire.client }} | {{ affaire.nomChantier }} | {{ affaire.adresseChantier }} | {{affaire.dateImport|date('d-m-Y')}} | {{affaire.dateMiseDispo|date('d-m-Y')}} | {{affaire.numeroSemainePlanification}} | {{ stats[affaire.id].totalPoutres }} |
{% set ratio = 0 %}
{% if stats[affaire.id] is defined and stats[affaire.id].totalPoutres > 0 %}
{% set ratio = (stats[affaire.id].dansPlan / stats[affaire.id].totalPoutres * 100)|round(0, 'floor') %}
{% endif %}
{% if ratio == 100 %} {% elseif ratio >= 80 %} {% elseif ratio >= 30 %} {% elseif ratio >= 10 %} {% else %} {% endif %} {{ratio}} % ({{ stats[affaire.id].dansPlan }}) |
{% set ratio = 0 %}
{% if stats[affaire.id] is defined and stats[affaire.id].totalPoutres > 0 %}
{% set ratio = (stats[affaire.id].dejaCollees / stats[affaire.id].totalPoutres * 100)|round(0, 'floor') %}
{% endif %}
{% if ratio == 100 %} {% elseif ratio >= 80 %} {% elseif ratio >= 30 %} {% elseif ratio >= 10 %} {% else %} {% endif %} {{ratio}} % ({{ stats[affaire.id].dejaCollees }}) |
{# {% set ratio = 0 %} {% if statsRegroupee[affaire.id] is defined and statsRegroupee[affaire.id].total > 0 %} {% set ratio = (statsRegroupee[affaire.id].regroupees / statsRegroupee[affaire.id].total * 100)|round(0, 'floor') %} {% endif %} {% if ratio == 100 %} {% elseif ratio >= 50 %} {% elseif ratio > 0 %} {% else %} {% endif %} {{ stat.regroupees }} / {{ stat.total }} | #}