admin_prestataire.html.twig 1.61 KB
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9
{% 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'))} %}
Julien Jorry committed
10
{% elseif getCurrentPrestataire().solidoume == false %}
Julien Jorry committed
11 12 13 14 15 16
	{% include '@kohinos/block/cotisations.html.twig' %}
	{% set groupeprestataires = getAllGroupePrestataires() %}
	{% if groupeprestataires|length > 0 %}
		{% include '@kohinos/groupepresta/block/inscription.html.twig' %}
	{% endif %}
{% endif %}
Julien Jorry committed
17
{% if getCurrentPrestataire().solidoume == false %}
18
	{% if KOH_USE_PAYZEN == 'true' or KOH_USE_HELLOASSO == 'true' %}
Julien Jorry committed
19 20 21 22
		{% include '@kohinos/presta/block/achat_monnaie.html.twig' %}
	{% else %}
		{% include '@kohinos/presta/block/demande_achat_monnaie.html.twig' %}
	{% endif %}
Julien Jorry committed
23 24 25
{% endif %}
{% include '@kohinos/presta/block/transaction_presta.html.twig' %}
{% include '@kohinos/presta/block/transaction_adherent.html.twig' %}
Julien Jorry committed
26
{% if getCurrentPrestataire().mlc == false and getCurrentPrestataire().solidoume == false and getCurrentPrestataire().emlcAccount.balance > 0 %}
Julien Jorry committed
27 28
	{% include '@kohinos/presta/block/reconversion.html.twig' %}
{% endif %}