{# templates/app/commandes/form.html.twig #} {% extends 'app/base.html.twig' %} {% set is_edit = commande and commande.id is defined %} {% block title %}{{ is_edit ? 'Modifier la commande' : 'Nouvelle commande' }} — GestRestoSco{% endblock %} {% block body %}

{{ is_edit ? 'Commande #' ~ commande.id : 'Nouvelle commande fournisseur' }}

Retour
Informations générales
{% if is_edit %}
{% endif %}
{# Lignes de commande #}
Lignes de commande
{% for ligne in lignes %} {% set u = ligne.unite ?? '' %} {% set tva = ligne.taux_tva ?? 5.5 %} {% set ttc = ligne.is_ttc ?? 1 %} {% endfor %}
Produit Réf. Qté Unité Prix unit. TVA HT/TTC Origine Label Total HT Total TTC
{{ ligne.origine ?? '' }} {{ ligne.label ?? '' }}
Total HT : Total TTC :
Annuler
{##{% if is_edit and commande.statut == 'brouillon' %}
{% endif %} {% if is_edit %}
Télécharger le bon de commande (PDF)
{% endif %}##} {% endblock body %}