{% set partnerName = partner_name|split_agency %}
Voucher de Réservation
Merci pour votre réservation, {{ booking.firstName }} !
Numéro de voucher :
{{ booking.voucherNumber }}
Numéro de Réservation :
{{ booking.bookingNumber }}
Client :
{{ booking.getClientFullName() }}
Établissement :
{{ booking.hotelName }}
Dates :
Du {{ booking.beginDate|date('d/m/Y') }} au {{ booking.endDate|date('d/m/Y') }} ({{ booking.numberOfStay }} nuits)
Pension :
{{ booking.pensionName }}
Mode de paiement :
{{ displayPaymentType(booking.paymentType) }}
{% if booking.note is defined and booking.note is not empty %}
Note particulière :
{{ booking.note }}
{% endif %} {% set finalPrice = 0 %} {% for details in booking.detailsPrices %} {% if details['rooms_per_pension'] is defined %} {% for roomPerPension in details['rooms_per_pension'] %} {% for priceDay in roomPerPension['room_price_per_day'] %} {% set roomPriceData = priceDay['final_price_per_day']['room'] %} {% set roomBrut = roomPriceData['brut_price'] %} {% set finalPrice = finalPrice + roomBrut %} {% endfor %} {% endfor %} {% endif %} {% endfor %}
Date Désignation & Occupants Pension Prix Chambre Suppléments Hors Chambre
{{ priceDay['date']|date('d/m/Y') }} {{ roomPerPension['name'] }} ({{ roomPerPension['code'] }}) {# --- DÉTAIL DES OCCUPANTS --- #}
{# Adulte(s) #} {% if roomPriceData['adult'] is defined and roomPriceData['adult'] is not empty %}
• Adulte(s) de base : {{ roomPriceData['adult']['brut_price']|number_format(2, ',', ' ') }} TND
{% endif %} {# Lits supplémentaires 1 à 4 #} {% for i in 1..4 %} {% set bedKey = 'extendedBed' ~ i %} {% if roomPriceData[bedKey] is defined and roomPriceData[bedKey] is not empty and roomPriceData[bedKey]['brut_price'] is defined and roomPriceData[bedKey]['brut_price'] > 0 %}
• Lit supplémentaire {{ i }} : {{ roomPriceData[bedKey]['brut_price']|number_format(2, ',', ' ') }} TND
{% endif %} {% endfor %} {# Enfants #} {% if roomPriceData['childs'] is defined and roomPriceData['childs'] is not empty %} {% for child in roomPriceData['childs'] %}
• Enfant {{ child.enfant ?? loop.index }} ({{ child.age }} {{ child.age <= 1 ? 'an' : 'ans' }}) : {{ child.brut_price|number_format(2, ',', ' ') }} TND {% if child.label %}
({{ child.label }}){% endif %}
{% endfor %} {% endif %}
{{ details['pension_name'] }} {{ roomBrut|number_format(2, ',', ' ') }} TND {% if priceDay['final_price_per_day']['supplements'] is defined and priceDay['final_price_per_day']['supplements'] is not empty %} {% for supplement in priceDay['final_price_per_day']['supplements'] %} {% set finalPrice = finalPrice + (supplement['brut_price'] ?? 0) %}
{{ supplement['name'] }}
+ {{ (supplement['brut_price'] ?? 0)|number_format(2, ',', ' ') }} TND
{% endfor %} {% else %} Aucun {% endif %}
Montant total à régler : {{ finalPrice|number_format(2, ',', ' ') }} TND