{# @author: Benjamin AMOUZOU #} {% extends "rse/template-rse.html.twig" %} {% block titre_enfant %} Performance {% endblock %} {% block contenu_principal_rse %}
Performance écocollecteur


{% if performance %}
{# Calcul des valeurs totals #} {% set caTotal = 0 %} {% set poidsTotal = 0 %} {% set depenseTotal = 0 %} {% for performanceAGR in performancesAGR %} {% set caTotal = caTotal + performanceAGR.chiffreAffaireTotal %} {% set depenseTotal = depenseTotal + performanceAGR.coutAchatTotal %} {% set poidsTotal = poidsTotal + performanceAGR.poidsTotal %} {% endfor %} {% set tonnageTotal = poidsTotal / 1000 %}
{# Affichage des CA #}
{% for performanceAGR in performancesAGR %}
{% endfor %} {# Fin affichage des CA #} {# Affichage des tonnages #}
{% for performanceAGR in performancesAGR %}
{% endfor %} {# Fin affichage des tonnages #} {# Affichage des dépenses #}
{% for performanceAGR in performancesAGR %}
{% endfor %} {# Fin affichage des dépenses #}
{#Fin perfomance AGR#} {#Perfomance partenaire#}
{% if ecocollecteur.partenaire.denomination == "Groupe Togocom"%} {% set togocomCaTotal = performanceTogocom.caMobileData + performanceTogocom.caCreditCommunication + performanceTogocom.caDepotMobileMoney + performanceTogocom.caRetraitMobileMoney %}
{% endif %}
{#fin perfomance partenaire#}
{% endif %}
{% endblock %} {% block script %} {% endblock %}