{% set operations = operations|default(getLastOperations(app.request, app.user, constant('App\\Enum\\CurrencyEnum::CURRENCY_EMLC'))) %} {% set title = title|default('Dernières opérations'|trans) %} {% extends '@kohinos/block/block_collapse.html.twig' %} {% block blocktitle %} {{ title }} {% endblock blocktitle %} {% block blocksubtitle %} {% endblock blocksubtitle %} {% block blockcontent %} {% if operations|length > 0 %}
{% for operation in operations %} {% if operation.flux is not null %} {# ── Ligne de données ──────────────────────────────────────────── #} {# ── Ligne de détail (colspan=4, pas de décalage de colonnes) ── #} {% endif %} {% endfor %}
Date Type Operation Montant
{{ operation.createdAt|date('d/m/Y') }} {{ ((isCurrentAccountable(app.user, operation.flux.expediteur) ? 'exp' : 'des')~'_'~operation.flux.parenttype)|trans({}, 'flux') }} {{ (operation.montant < 0)? '- ':'+ ' }} {{ operation.montant|abs|number_format(2) }} {{ getCurrencyName(operation.currency) }}
{{ 'Référence'|trans }} : {{ operation.flux.reference }}   ·   {{ 'Moyen'|trans }} : {{ operation.flux.moyen|trans }} {% if operation.flux.moyen == constant('App\\Enum\\MoyenEnum::MOYEN_HELLOASSO') %} {% set urlTicket = getPaymentReceiptUrlFromFlux(operation.flux) %} {% if urlTicket is not empty %}   ·   {{ 'Ticket CB'|trans }} {% endif %} {% endif %}
{% else %}
{{ 'Aucunes opérations pour le moment ! '|trans }}
{% endif %} {% if operations|length > 0 %} {{ 'Voir toutes les opérations'|trans }}
{#
#} {% endif %} {% endblock blockcontent %}