{% extends'@admin/base.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block breadcrumb %} {% endblock %} {% block bodycontent %}
{#Titre document#}

VENTES - CREATION ECHANGE DU BON DE COMMANDE CLIENT

{% if document.deliveryTotal %}{{ document.deliveryTotal }}{% else %}0{% endif %}TND
{# ===== Template ligne produit (1 seule fois) ===== #} {# ===== Template ligne commentaire (1 seule fois) ===== #} {# ligne delivery legacy cachee: conservee pour compatibilite JS #} {#Ligne séparatrice#} {% if document and document.documentDeclinationProduits is not empty %} {% for key, documentDeclinationProduit in document.documentDeclinationProduits|filter(prod => prod.type != "declinationEchange") %} {# Colonne cachée (alignement avec ) #} {# Checkbox (overlay) + Image cliquable #} {# Référence #} {# Description #} {# P.U HT (affiché disabled + valeur postée en hidden) #} {# Remise #} {# TVA #} {# Qté #} {# Total TTC #} {# Colonne actions (vide ici) #} {% endfor %} {% endif %} {% if document.documentComments is not empty %} {% for key, documentComment in document.documentComments %} {% endfor %} {% endif %}
# Image Référence Description P.U HT Remise TVA Qt Net à payer
Cocher le(s) produit(s) à échanger
# {% set cbId = 'cb-echange-' ~ key %}
{% set picture = asset('/images/galery_placeholder_200.png') %} {% for image in documentDeclinationProduit.produitDeclinationValue.picture %} {% if image.isSelected %} {% set picture = app.request.getSchemeAndHttpHost() ~ vich_uploader_asset(image, 'file') %} {% endif %} {% endfor %} {# Cliquer sur l'image toggle la checkbox #}
{{ documentDeclinationProduit.totalAmountTtc }} TND
Ajouter le(s) nouveau(x) produit(s)
{% if document.documentProduits is empty and document.documentDeclinationProduits is empty %}
Ajoutez une ligne pour commencer votre document
{% endif %}
{% if type == 'commande' %} {% endif %}
{# --- Totaux --- #}
Montant total HT 0.000 TND
TVA 0.000 TND
Montant total TTC {{ document.deliveryTotal }} TND
Remise 0.000 {% if document.discountType == "percent" %}%{% else %}TND{% endif %}
Net à payer (hors frais) 0.000 TND
Total frais de port {{ document.deliveryTotal }} TND
Montant total Net 0.000 TND
{# -- Partie droite : Document + Client + Paiement + Livraison -- #}
Motif d'échange
{# == DOCUMENT == #}
Document
{# Champ source Document (caché) #}
{# Créé par (caché) #}
{# == INFO CLIENT == #}
Info Client
{{ document.client.civility }} {{ document.client.firstName }}
{{ document.client.username }}
{{ document.client.phone }} {% if document.client.secondPhone %} | {{ document.client.secondPhone }} {% endif %}
{% if document.client.adress %}
{% if document.adress %} {{ document.adress|replace({'Tunisie': ""}) }} {% else %} {{ document.client.adress|replace({'Tunisie': ""}) }} {% endif %} , {{ document.client.city }} {{ document.client.region }}
{% if document.client.multiAddress is not empty %} {% endif %}
{% if document.client.multiAddress is not empty %} {% endif %} {% else %}
Pas d'adresse !
{% endif %}
{# == INFOS PAIEMENT == #}
Infos Paiement
Annuler et Fermer
{{ include('@admin/includes/modals/_modal_edit_user.html.twig') }} {{ include('@admin/includes/modals/_modal_catalogue_produit.html.twig') }} {% endblock %}