{% extends 'app/base.html.twig' %} {% block title %}Télédéclaration ma-cantine — GestRestoSco{% endblock %} {% block body %}
| Famille de produits | {# Labels EGAlim exclusifs #}Bio | Label Rouge | AOP/IGP | HVE | Pêche durable | RUP | Éq. équitable | Fermier | {# Caractéristiques cumulables #}France | Circuit court | Local | {# Hors EGAlim + Total #}Hors EGAlim | Total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ familleLabel }} | {% for col in colKeys %} {% set val = attribute(ligneMatrice, col) is defined ? attribute(ligneMatrice, col) : 0 %}{% if val > 0 %}{{ val|number_format(2, ',', ' ') }}{% else %}—{% endif %} | {% endfor %} {# Total ligne #} {% set totalLigne = attribute(ligneMatrice, 'total') is defined ? attribute(ligneMatrice, 'total') : 0 %}{{ totalLigne > 0 ? totalLigne|number_format(2, ',', ' ') : '—' }} | |||||||||||
| TOTAL GÉNÉRAL | {% for col in colKeys %} {% set colSum = 0 %} {% for familleCode in familles|keys %} {% set ligneMatrice = attribute(matrice, familleCode) is defined ? attribute(matrice, familleCode) : {} %} {% set v = attribute(ligneMatrice, col) is defined ? attribute(ligneMatrice, col) : 0 %} {% set colSum = colSum + v %} {% endfor %}{{ colSum > 0 ? colSum|number_format(2, ',', ' ') : '—' }} | {% endfor %}{{ totaux.total_general|number_format(2, ',', ' ') }} |
{{ baseUrl }}/app/egalim/macantine/callback