{% 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 %}
| Date | Type | Operation | Montant |
|---|---|---|---|
| {{ operation.createdAt|date('d/m/Y') }} | {{ ((isCurrentAccountable(app.user, operation.flux.expediteur) ? 'exp' : 'des')~'_'~operation.flux.parenttype)|trans({}, 'flux') }} | {% if not isCurrentAccountable(app.user, operation.flux.expediteur) %} {% if operation.flux.expediteur is instanceof("App\\Entity\\Prestataire") and is_callable(operation.flux, 'getSolidoumeParameter') and operation.flux.solidoumeParameter != null %} {{ getSolidoumeParam('name')|default('Sécurité Sociale Alimentaire') }} {% else %} {{ operation.flux.expediteur }} {% endif %} {% elseif not isCurrentAccountable(app.user, operation.flux.destinataire) %} {% if operation.flux.destinataire is instanceof("App\\Entity\\Prestataire") and is_callable(operation.flux, 'getSolidoumeParameter') and operation.flux.solidoumeParameter != null %} {{ getSolidoumeParam('name')|default('Sécurité Sociale Alimentaire') }} {% else %} {{ operation.flux.destinataire }} {% endif %} {% endif %} | {{ (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 %}
|
|||