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

ACHAT - {% if document.type == 'achat' %} CREATION DE DEMANDE D'ACHAT FOURNISSEUR {% elseif document.type == 'facture' %} CREATION DE FACTURE FOURNISSEUR {% elseif document.type == 'reception' %} CREATION DU BON DE RECEPTION FOURNISSEUR {% elseif document.type == 'retour' %} CREATION BON DE RETOUR FOURNISSEUR {% endif %}

{{ document.deliveryTotal ?? 0 }} TND
{# Contenu du document (structure identique client) #}
{# Template ligne produit (identique client) #} {# Template ligne commentaire (identique client) #} {# Ligne livraison (structure client, logique inchangée) #}
# Image Référence Description P.U HT Qt Remise TVA Net à payer (TTC)
Produit
{% if document.documentProduits is empty and document.documentDeclinationProduits is empty %}
Ajoutez une ligne pour commencer votre document
{% endif %}
{# Footer (structure client) - on garde tes features "Catalogue" + "Total Qté par produit" #}
{% if type in ['achat','retour','reception'] %}
Ajouter un commentaire
{# Total Qté par produit (ton feature, inchangé) #}
Total Qté par produit
Aucun produit ajouté
{% endif %}
{# Totaux BS5 identiques client (on garde tes IDs) #}
Total HT 0.000 TND
Total TVA 0.000 TND
Total TTC 0.000 TND
Remise {% if document.discount is null %}0.000{% else %}{{ document.discount }}{% endif %} {% if document.discountType == "percent" %}%{% else %}TND{% endif %}
Frais de port TND
Net à payer 0.000 TND
Fournisseur
{# == INFOS DOCUMENT (fieldset style client) == #}
Info Document
{# NOTE: datetime-local attend Y-m-d\TH:i ; ton ancien code utilisait d/m/Y => bug #}
{# == INFOS PAIEMENT (fieldset style client) == #}
Info Paiement
{# NOTE: datetime-local attend Y-m-d\TH:i ; ton ancien code utilisait d/m/Y => bug #}
{# == INFOS LIVRAISON (fieldset style client) == #}
Info Livraison
{# Bouton Annuler à gauche #} Annuler et Fermer {# Boutons Enregistrer à droite #}
{% if type in ['achat','retour','reception'] %} {% endif %}
{{ include('@admin/includes/modals/_modal_edit_user.html.twig') }} {{ include('@admin/includes/modals/_modal_catalogue_produit.html.twig') }} {% endblock %} {% block js %} {{ parent() }} {% endblock %}