{% extends "base.html" %} {% block body %}

{{ delivery.name }} — Commande pour « {{ person.name }} »

{% include "includes/delivery_head.html" %}
{% for producer in delivery.producers %}

{{ producer }}

{% if delivery.has_packing %} {% endif %} {% if delivery.status == delivery.ADJUSTMENT or order.has_adjustments %} {% endif %} {% for product in delivery.get_products_by(producer) %} {% if delivery.has_packing %} {% endif %} {% if delivery.status == delivery.ADJUSTMENT or order.has_adjustments %} {% endif %} {% endfor %}
Produit PrixConditionnementCommandeAjustement +/−
{{ product }} {% if product.description or product.img %} {% with unique_id=loop.index %} {% include "includes/modal_product.html" %} {% endwith %} {% endif %} {{ product.price | round(2) }} €{{ product.packing or "—" }}{% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} (manque {{ delivery.product_missing(product) }}){% endif %} x {{ product.unit }}
{% endfor %}

Total: {{ order.total(delivery.products) if order else 0 }} €

{% if delivery.is_passed %}

Commande soldée:

{% endif %} {% if delivery.status != delivery.CLOSED or request.user.is_staff %} {% endif %} Envoyer par courriel
{% endblock body %}