{% extends '@Flexy/FrontBundle/Themes/' ~ settings.get.assetFolderName|capitalize ~ '/templates/layout.html.twig' %} {% form_theme editForm 'bootstrap_4_layout.html.twig' %} {% block body %}
{% include "@Flexy/FrontBundle/Themes/" ~ settings.get.assetFolderName|capitalize ~ "/templates/missions/small-includes/_steps.html.twig" with {invoice:invoice} %}
{% include "@Flexy/FrontBundle/Themes/" ~ settings.get.assetFolderName|capitalize ~ "/templates/missions/small-includes/_ticket.html.twig" with {invoice:invoice,missions:missions} %}
{{form_start(editForm,{"attr":{"id":"checkout-form","data-turbo":"false"},'action': path('completeBookingFormStep3',{id:invoice.id})})}}
{% if is_granted("ROLE_CUSTOMER") ==false %}
Informations Factures
{% endif %} {% if is_granted("ROLE_CUSTOMER") == false %} {{form_row(editForm.pay20Percent)}} {% for singleField in editForm.children["customer"] %} {% if singleField != editForm.children|last %} {{form_row(singleField)}} {% endif %} {% endfor %} {% else %}
{% set customerHasWallet = false %} {% set creditMax = 0 %} {% if invoice.customer.credit > 0 %} {% set customerHasWallet = true %} {% set creditMax = invoice.customer.credit %} {% endif %} {% if customerHasWallet %}
Utiliser Remises de fidélité ATAFRANCE
{{form_widget(editForm.walletPaymentAmount, { disabled : customerHasWallet ? false : true,attr:{ min: 0, max: creditMax } })}} {{form_errors(editForm.walletPaymentAmount)}}

Votre solde est {{invoice.customer.credit}}{{settings.get.currency|trans}} , Vous utiliserez 0{{settings.get.currency|trans}} Il vous restera {{invoice.customer.credit}}{{settings.get.currency|trans}}

{% else %}
Vous n'avez pas de solde !
{{form_widget(editForm.walletPaymentAmount, { disabled : customerHasWallet ? false : true,attr:{ value:0 } })}} {{form_errors(editForm.walletPaymentAmount)}}

Cumuler les remises à chacune de vos réservations sur notre site.

{% endif %}
Informations Factures
{{form_rest(editForm)}} {% endif %}
{{form_end(editForm)}}
{% endblock %} {% block javascripts %} {{parent()}} {% endblock %}