{% extends '@kohinos/bundles/SonataAdminBundle/standard_layout.html.twig' %} {% block sonata_page_content %}
{# Rapport structuré SSA (optionnel) #} {% if report is defined %} {% include '@kohinos/admin/_ssa_report.html.twig' with { report: report } %}
{% endif %} {% for ssaname, datas in datasBySsa %}

{{ ssaname }} : Redistributions


{% if datas|length > 0 %} {% for key, data in datas %} {% if key == '_next' %}

Prochaine redistribution :

{% else %}

Redistribution du {{ key }} :

{% endif %}

Montant récolté : {{ data.totalAmount }}€

Commission récoltée ({{ data.commission }}%) : {{ data.amountcommission }}€

Nombre de donateur(s) : {{ data.nbdonateur }} (pour un total de {{ data.totalAmountDon }}€)

{% if key != '_next' %}

Nombre de personne(s) participante(s) au programme : {{ data.nbperson }}

Nombre de "raté(s)" : {{ data.nbmissed }} (pour un total de {{ data.totalMissed }}€)

Montant réel redistribué par participant : {{ data.totalperperson }}€

Montant total réel calculé par le script de redistribution : {{ (data.totalperperson*data.nbperson/95*100)|round(0, 'common') }}€

{% endif %}
{% for name, adherent in data.adherent %} {% endfor %}
Adhérent Somme prélevée Somme redistribuée Date de prélèvement Don ? Récurrent ?
{{ name }} {{ adherent.prelevement is defined?adherent.prelevement.montant:'non prélevé' }} {% if adherent.redistribution is defined %} {{ adherent.redistribution.montant }} {% else %} non redistribué {% if adherent.don is defined and adherent.don == 1 %} (don) {% endif %} {% endif %} {{ adherent.prelevement is defined?adherent.prelevement.createdAt|date('d/m/Y H:i'):'' }} {{ (adherent.don is defined and adherent.don == 1)?'oui':'non' }} {{ adherent.item.isRecurrent == 1?'oui':'non' }}




{% endfor %} {% else %}

{{ "Aucunes redistributions pour le moment !"|trans }}

{% endif %}
{% endfor %}
{% endblock %}