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

ACHAT - {% if app.request.attributes.get('_route') == 'convert_da_to_bon_reception' %} TRANSFORMATION DU DOCUMENT {% else %} MODIFICATION DU DOCUMENT FOURNISSEUR {% endif %}

{# ======================= LEFT ======================= #}
{{ document.deliveryTotal ?? 0 }} TND
{# Template commentaire #} {# Livraison #} {# 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)
{% 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 %}
{# Footer #}
{% if type in ['achat','retour','reception'] %}
Ajouter un commentaire
Total Qté par produit
Aucun produit ajouté
{% endif %}
Produit
Total HT {{ document.totalAmountHt ?? '0.000' }} TND
Total TVA {{ document.totalTva ?? '0.000' }} TND
Total TTC {{ document.totalToPay ?? '0.000' }} TND
Remise {{ document.discount ?? '0.000' }} {% if document.discountType == "percent" %}%{% else %}TND{% endif %}
Frais de port TND
Net à payer {{ document.totalToPay ?? '0.000' }} TND
{# ======================= RIGHT SIDEBAR ======================= #}
{# Fournisseur: select (si tu veux le verrouiller plus tard, on mettra readonly selon status) #}
Fournisseur
{# Info Document #}
Info Document
{# Info Paiement #}
Info Paiement
{# Info Livraison #}
Info Livraison
{#
#}
{# Actions #}
Annuler et fermer
{% 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 %}