{% if tache.communications.snapshot %}

Communications

{% set total = 0 %} {% for c in tache.communications.snapshot %} {% set total = total + c.forfait %} {% else %} {% endfor %}
Date Statut Communication forfait
{{ c.date ? c.date | date('d/m/Y') }} {{ c.statut ? c.statut.statut }} {{ c.description ? " " ~ c.description ~ " " : "" }} {{ c.forfait ? c.forfait ~ " €" : "" }} {% if c.payer == 1 %} réglée {% else %} pas réglée {% endif %}
Total {{total}} €
{% endif %}