{% if repLocCreatedCount > 0 or repLocFinishedCount > 0 %}
REP/CAL LOC créées
{% if repLocCreatedCount > 0 %}
Nombre de REP/CAL LOC créées :
{{ repLocCreatedCount }}
Nombre de REPLOC créées :
{% if beRepCreatedCount > 0 %} {{ beRepCreatedCount }} {% endif %}
Nombre de CALLOC créées :
{% if beCalCreatedCount > 0 %} {{ beCalCreatedCount }} {% endif %}
Nombre de sans type créées :
{% if nullCreatedCount > 0 %} {{ nullCreatedCount }} {% endif %}
{% else %}
Aucune REP/CAL LOC créée
{% endif %}
REP/CAL LOC Terminées
{% if repLocFinishedCount > 0 %}
Nombre de REP/CAL LOC terminées :
{{ repLocFinishedCount }}
Nombre de REPLOC terminées :
{% if beRepFinishedCount > 0 %} {{ beRepFinishedCount }} {% endif %}
Nombre de CALLOC terminées :
{% if beCalFinishedCount > 0 %} {{ beCalFinishedCount }} {% endif %}
Nombre de IRRÉPARABLE terminées :
{% if irrepFinishedCount > 0 %} {{ irrepFinishedCount }} {% endif %}

Temps de traitement moyen des REP/CAL LOC terminées :
REPLOC :
{% if averageProcessingDurationRep != null %} {{ averageProcessingDurationRep }} jour{% if averageProcessingDurationRep > 1 %}s{% endif %} {% endif %}
CALLOC :
{% if averageProcessingDurationCal != null %} {{ averageProcessingDurationCal }} jour{% if averageProcessingDurationCal > 1 %}s{% endif %} {% endif %}
IRRÉPARABLE :
{% if averageProcessingDurationIrrep != null %} {{ averageProcessingDurationIrrep }} jour{% if averageProcessingDurationIrrep > 1 %}s{% endif %} {% endif %}

Temps moyen du diagnostic fournisseur :
{% if averageRetourFourDuration > 0 %} {{ averageRetourFourDuration }} jour{% if averageRetourFourDuration > 1 %}s{% endif %} {% else %} Aucune donnée {% endif %}
REPLOC :
{% if averageRetourFourDurationRep != null %} {{ averageRetourFourDurationRep }} jour{% if averageRetourFourDurationRep > 1 %}s{% endif %} {% endif %}
CALLOC :
{% if averageRetourFourDurationCal != null %} {{ averageRetourFourDurationCal }} jour{% if averageRetourFourDurationCal > 1 %}s{% endif %} {% endif %}
IRRÉPARABLE :
{% if averageRetourFourDurationIrrep != null %} {{ averageRetourFourDurationIrrep }} jour{% if averageRetourFourDurationIrrep > 1 %}s{% endif %} {% endif %}

Temps moyen chez le fournisseur :
{% if averageRetourMaterielDuration > 0 %} {{ averageRetourMaterielDuration }} jour{% if averageRetourMaterielDuration > 1 %}s{% endif %} {% else %} Aucune donnée {% endif %}
REPLOC :
{% if averageRetourMaterielDurationRep != null %} {% set replocList = '' %} {% for key,reploc in averageRetourMaterielDurationRepRepLocs %} {% set replocList = replocList ~ ' REPLOC ' ~ reploc.code ~ ' - Envoi le ' ~ reploc.getDateEnvoiFour|date('d/m/Y') ~ ' - Retour le ' ~ reploc.getDateRetourFour|date('d/m/Y') ~ '\\n' %} {% endfor %} {{ averageRetourMaterielDurationRep }} jour{% if averageRetourMaterielDurationRep > 1 %}s{% endif %} {% endif %}
CALLOC :
{% if averageRetourMaterielDurationCal != null %} {{ averageRetourMaterielDurationCal }} jour{% if averageRetourMaterielDurationCal > 1 %}s{% endif %} {% endif %}
IRRÉPARABLE :
{% if averageRetourMaterielDurationIrrep != null %} {{ averageRetourMaterielDurationIrrep }} jour{% if averageRetourMaterielDurationIrrep > 1 %}s{% endif %} {% endif %}

REP/CAL LOC Diagnostiquées PLM SERVICES
{% if countLocDiagnostic > 0 %}
Nombre de REP/CAL LOC diagnostiquées :
{{ countLocDiagnostic }}
Nombre de REPLOC diagnostiquées :
{% if countLocDiagnosticRep > 0 %} {{ countLocDiagnosticRep }} {% endif %}
Nombre de CALLOC diagnostiquées :
{% if countLocDiagnosticCal > 0 %} {{ countLocDiagnosticCal }} {% endif %}

Temps de traitement moyen des REP/CAL LOC diagnostiquées :
{% if averageDiagnostic != null %} {{ averageDiagnostic }} jour{% if averageDiagnostic > 1 %}s{% endif %} {% endif %}
REPLOC :
{% if averageDiagnosticRep != null %} {{ averageDiagnosticRep }} jour{% if averageDiagnosticRep > 1 %}s{% endif %} {% elseif averageDiagnosticRep == null and countLocDiagnosticRep > 0 %}

1 jour

{% endif %}
CALLOC :
{% if averageDiagnosticCal != null or averageDiagnosticCal == 0 %} {{ averageDiagnosticCal }} jour{% if averageDiagnosticCal > 1 %}s{% endif %} {% elseif averageDiagnosticCal == null and countLocDiagnosticCal > 0 %}

1 jour

{% endif %}
{% else %}
Aucune donnée
{% endif %}
REP/CAL LOC terminées : données pour chaque fournisseur
{% if supplierGaps|length > 0 %}
{% for supplierGap in supplierGaps %}
{{ supplierGap.supplier }}
Nombre de REP/CAL :
{{ supplierGap.replocs|length }}
Temps moyen chez le fournisseur :
{% if supplierGap.averageRetourGap == 0 %}
1 jour
{% else %}
{{ supplierGap.averageRetourGap }} jour{% if supplierGap.averageRetourGap > 1 %}s{% endif %}
{% endif %}
{% endfor %}
{% else %}
Aucune donnée
{% endif %} {% else %}
Aucune REPLOC terminée
{% endif %} {% else %}
Aucune REPLOC
{% endif %} {% block javascripts %} {% endblock %}