{% extends '@kohinos/common/layout.html.twig' %} {% block title %}{{ title }}{% endblock %} {% block content %}

{{ title }}

{% if existingRequest %}
{{ 'Votre achat mensuel récurrent est actif'|trans }}

{{ 'Montant mensuel'|trans }} : {{ existingRequest.monthlyAmount }} €

{{ 'Jour de prélèvement'|trans }} : {{ 'Le'|trans }} {{ existingRequest.debitDay }} {{ 'de chaque mois'|trans }}

{{ 'Statut'|trans }} : {% if existingRequest.isPending %} {{ 'En attente de validation'|trans }} {% elseif existingRequest.isActive %} {{ 'Actif'|trans }} {% endif %}

{% if existingRequest.lastProcessedMonth %}

{{ 'Dernier prélèvement'|trans }} : {{ existingRequest.lastProcessedMonth|date('m/Y') }}

{% endif %} {% if existingRequest.hasModificationRequest %}
{{ 'Modification en attente de validation'|trans }}
{% if existingRequest.newAmountRequested %}

{{ 'Nouveau montant demandé'|trans }} : {{ existingRequest.newAmountRequested|number_format(2, ',', ' ') }} €

{% endif %} {% if existingRequest.newDebitDay %}

{{ 'Nouveau jour demandé'|trans }} : {{ 'Le'|trans }} {{ existingRequest.newDebitDay }} {{ 'du mois'|trans }}

{% endif %}

{{ 'En attente de validation par le trésorier'|trans }}

{% endif %}
{% else %} {% endif %} {% if configured_debit_day is defined and configured_debit_day is not null and configured_debit_day != '' %}
{{ 'Jour de prélèvement fixe'|trans }}

{{ 'Le jour de prélèvement est fixé au'|trans }} {{ configured_debit_day }} {{ 'de chaque mois par la configuration de votre monnaie locale.'|trans }}

{% endif %}
{{ existingRequest ? 'Modifier mon achat mensuel récurrent'|trans : 'Créer mon achat mensuel récurrent'|trans }}
{{ form_start(form) }}
{{ form_label(form.monthlyAmount) }} {{ form_widget(form.monthlyAmount) }} {{ form_help(form.monthlyAmount) }} {{ form_errors(form.monthlyAmount) }}
{% if configured_debit_day is not defined or configured_debit_day is null or configured_debit_day == '' %}
{{ form_label(form.debitDay) }} {{ form_widget(form.debitDay) }} {{ form_help(form.debitDay) }} {{ form_errors(form.debitDay) }}
{% endif %}

{{ 'Important'|trans }} :

  • {{ 'Vous devez avoir un'|trans }} {{ 'mandat SEPA validé'|trans }} {{ 'pour utiliser cette fonctionnalité'|trans }}
  • {{ 'Assurez-vous d\'avoir suffisamment de provision sur votre compte bancaire le jour du prélèvement'|trans }}
  • {{ 'Vous pouvez modifier ou annuler votre prélèvement à tout moment'|trans }}
{% if existingRequest %}
{% endif %} {{ 'Retour'|trans }}
{{ form_end(form) }}
{% endblock %}