{# Liste des caisses SSA acceptant le SEPA #} {% set ssaWithSepa = getEnabledSsaParametersWithSepa() %} {% if KOH_USE_SEPA|default('false') == 'true' and ssaWithSepa|length > 0 %} {% set idcard = 'sepa_ssa' %} {% extends '@kohinos/block/block_collapse.html.twig' %} {% block blocktitle %} {{ 'Mes prélèvements SEPA pour les caisses SSA'|trans }} {% endblock blocktitle %} {% block blocksubtitle %} {% endblock blocksubtitle %} {% block blockcontent %} {% set hasActiveMandate = hasActiveSepaMandateForEntity(app.user.adherent) %} {# Récupérer les cotisations existantes #} {% set ssaSubscriptions = getRecurringSsaSubscriptionsForAdherent(app.user.adherent) %} {% if not hasActiveMandate %}
{{ "Vous n'avez pas encore de mandat SEPA actif. Créez-en un pour pouvoir cotiser par prélèvement automatique."|trans }}
{{ 'Créer un mandat SEPA'|trans }} {% else %}
{{ 'Vous avez un mandat SEPA actif.'|trans }}
{% endif %} {# Cotisations SSA existantes #} {% if ssaSubscriptions|length > 0 %}
{{ 'Mes cotisations SSA SEPA'|trans }}
{% endif %} {% if ssaSubscriptions|length < ssaWithSepa|length and ssaWithSepa|length > 0 and hasActiveMandate %}
{{ 'Cotiser par SEPA à une caisse SSA'|trans }}
{#
{{ 'Vous pouvez cotiser par prélèvement automatique SEPA aux caisses suivantes :'|trans }}
#} {% endif %} {% endblock blockcontent %} {% endif %}