admin_prestataire.html.twig 1.42 KB
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
{% set esoldelabel = 'Solde e-mlc'|trans %}
{% include '@kohinos/block/solde.html.twig' with {'compte': getCurrentPrestataire().emlcAccount.balance, 'soldelabel': esoldelabel, 'currency' : 'e'~(KOH_MLC_SYMBOL|default(''))} %}
{% if getCurrentPrestataire().mlc == false %}
	{% include '@kohinos/presta/block/infos.html.twig' %}
{% endif %}
{# {% include '@kohinos/block/transactions.html.twig' %} #}
{% include '@kohinos/block/operations.html.twig' %}
{% if getCurrentPrestataire().mlc == true %}
	{% include '@kohinos/block/operations.html.twig' with {'title' : 'Compte de fonctionnement €', 'operations': getLastOperations(app.request, app.user, constant('App\\Enum\\CurrencyEnum::CURRENCY_EURO'))} %}
{% else %}
	{% include '@kohinos/block/cotisations.html.twig' %}
	{% set groupeprestataires = getAllGroupePrestataires() %}
	{% if groupeprestataires|length > 0 %}
		{% include '@kohinos/groupepresta/block/inscription.html.twig' %}
	{% endif %}
{% endif %}
{% if isPayzenEnabled() %}
	{% include '@kohinos/presta/block/achat_monnaie.html.twig' %}
{% else %}
	{% include '@kohinos/presta/block/demande_achat_monnaie.html.twig' %}
{% endif %}
{% include '@kohinos/presta/block/transaction_presta.html.twig' %}
{% include '@kohinos/presta/block/transaction_adherent.html.twig' %}
{% if getCurrentPrestataire().mlc == false and getCurrentPrestataire().emlcAccount.balance > 0 %}
	{% include '@kohinos/presta/block/reconversion.html.twig' %}
{% endif %}