{% extends 'dashboard/base.twig' %} {% block title %}Détail de la réservation #{{ session.id }}{% endblock %} {% block title_header %}Réservation #{{ session.id }}{% endblock %} {% block body %}
{% set isActionable = session.deliveryPrice is not null and session.typePaiement %}
Retour Refuser Valider la demande
{# BILLING & DELIVERY CONFIG #}

Configuration Facturation & Livraison

{# CLIENT INFO #}

Informations Client

{% if session.customer %}
Nom complet {{ session.customer.surname }} {{ session.customer.name }}
{% else %}

Aucun client associé pour le moment.

{% endif %}
{# LOCATION & TECHNICAL INFO #}

Lieu & Technique

Adresse de l'événement

{{ session.adressEvent|default('Non renseignée') }}

{% if session.adress2Event %}

{{ session.adress2Event }}

{% endif %}

{{ session.zipCodeEvent }} {{ session.townEvent }}

Type de sol

{{ session.typeSol|default('-') }}

Pente

{{ session.pente|default('-') }}

Accès

{{ session.access|default('Aucune information') }}

Distance Prise élec. {{ session.distancePower|default(0) }} m
{% if session.deliveryDistance is not null %}

Détails Livraison

{# Map #} {% if session.deliveryGeometry %}
{% endif %} {# Details #}
Distance réelle (Aller) {{ session.deliveryDistance|number_format(1, ',', ' ') }} km
Franchise - 10.0 km
Distance facturée {{ max(0, session.deliveryDistance - 10)|number_format(1, ',', ' ') }} km
Trajets 4 (2 A/R)
({{ session.deliveryDistance|number_format(1) }} - 10) x 4 x 0.50€ = {{ session.deliveryPrice|number_format(2) }}€
{% endif %}
{# CART CONTENT #}

Contenu de la demande

{% if session.formule %}

Formule appliquée

{{ session.formule.name }}

{% endif %} {% if session.products['start'] is defined and session.products['end'] is defined %}
Du {{ session.products['start']|date('d/m/Y') }}
Au {{ session.products['end']|date('d/m/Y') }}
{% endif %}
{% if session.products['ids'] is defined %} {% for productId in session.products['ids'] %} {% set product = loadProductById(productId) %} {% if product %}
{% if product.image %} {{ product.name }} {% else %}
{% endif %}

{{ product.name }}

Réf: #{{ productId }}
1er jour : {{ product.price1day|number_format(2, ',', ' ') }} € {% if product.priceSup > 0 %} Jours supp : {{ product.priceSup|number_format(2, ',', ' ') }} € {% endif %}
{# LINKED OPTIONS #} {% if session.products.options[productId] is defined and session.products.options[productId]|length > 0 %}
{% for optionId in session.products.options[productId] %} {% set option = loadOptionById(optionId) %} {% if option %}
Option {{ option.name }} + {{ option.price|number_format(2, ',', ' ') }} €
{% endif %} {% endfor %}
{% endif %} {% else %}
Produit introuvable (ID #{{ productId }})
{% endif %} {% endfor %} {% else %}

Aucun produit.

{% endif %} {# ORPHAN OPTIONS #} {% if session.options is defined %} {% set hasOrphans = false %} {% for prodId, opts in session.options %} {% if prodId not in session.products['ids']|default([]) %} {% set hasOrphans = true %} {% endif %} {% endfor %} {% if hasOrphans %}
Options supplémentaires {% for prodId, opts in session.options %} {% if prodId not in session.products['ids']|default([]) %} {% for optionId in opts %} {% set option = loadOptionById(optionId) %} {% if option %}
{{ option.name }} {{ option.price|number_format(2, ',', ' ') }} € HT
{% endif %} {% endfor %} {% endif %} {% endfor %}
{% endif %} {% endif %}
{% if session.details %}
Notes client
{{ session.details }}
{% endif %} {# TOTAL #} {% set totalData = totalSession(session) %}
{% if session.promotion %}
Promotion : {{ session.promotion.name }} -{{ session.promotion.percentage }}%
{{ totalData.originalHT|number_format(2, ',', ' ') }} € HT
{% endif %}
Durée : {{ totalData.duration }} jour{{ totalData.duration > 1 ? 's' : '' }}
Total HT : {{ totalData.ht|number_format(2, ',', ' ') }} €
{% if totalData.tvaEnabled %}
Soit {{ (totalData.ht * 1.20)|number_format(2, ',', ' ') }} € TTC (TVA 20%)
{% endif %}
{# BILLING INFO #}

Facturation

{{ session.billingAddress|default('Même que livraison') }}

{{ session.billingZipCode }} {{ session.billingTown }}

{% endblock %}