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

VENTES - CREATION DU BON DE COMMANDE CLIENT

{#--Partie gauche--#}
{% if cmdEnAttente is defined and cmdEnAttente >= 2 %} {% endif %}
{# Select d'abord #} {# Icônes ensuite (même ligne) #}
{# Contenu de la commande #}
{{ document.deliveryTotal ?? 0 }}TND
{# Template ligne produit #} {# Template ligne commentaire #} {# Lignes existantes #} {% if document.documentDeclinationProduits is not empty %} {% for key, documentDeclinationProduit in document.documentDeclinationProduits %} {% 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 (TTC)
Produit
{% 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 %} Produit
{{ documentDeclinationProduit.totalAmountTtc }} TND
{% if document.documentProduits is empty and document.documentDeclinationProduits is empty %}
Ajoutez une ligne pour commencer votre document
{% endif %}
{% if type in ['commande','achat','retour','reception'] %} {% endif %}
{# --- Totaux (style BS5 comme ton exemple) --- #}
Total HT 0.000 TND
Total TVA 0.000 TND
Total TTC 0.000 TND
Remise {% if document.discountType == 'percent' %} ({{ document.discount is null ? '0' : document.discount ~ '%' }}) {% endif %} {% if document.discount is null %}0.000{% else %}{{ document.discount }}{% endif %} {% if document.discountType == "percent" %}%{% else %}TND{% endif %}
Net à payer (hors frais) 0.000 TND
Frais de port TND
Net à payer 0.000 TND
{#--Fin corpInfo--#} {# -- Partie droite : Client + Détail livraison + Détail payement -- #}
{# == N° + DATE (fieldset + compact) == #}
Document
{# ou ps-3 si tu veux plus d’air #}
{# Créé par (caché) #}
{# === INFO CLIENT === #}
Info Client {# Nom + lien profil #}
{{ document.client.civility }} {{ document.client.firstName }}
{{ document.client.username }}
{# Téléphones (compact) #}
{{ document.client.phone }} {% if document.client.secondPhone %} | {{ document.client.secondPhone }} {% endif %}
{# Adresse #} {% if document.client.adress %} {# 3) cacher la zone document.region #}
{% 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 (fieldset + compact) == #}
Infos Paiement
{# décale tout le contenu à droite #} {# ... ton bloc promoAlert inchangé ... #} {# Remise globale (compact) #}
{# Acompte (compact) #}
{# Moyen de paiement (compact) #}
{#--Fin partie droite--#}
{{ include('@admin/includes/modals/_modal_edit_user.html.twig') }} {{ include('@admin/includes/modals/_modal_catalogue_produit.html.twig') }} {{ include('@admin/includes/modals/_modal_pack_document.html.twig') }} {% endblock %} {% block js %} {{ parent() }} {% endblock %}