{% extends "base.html" %} {% block body %} {% set group_name = request.groups.groups.get(person.name, person).name %}

{{ delivery.name }}

Commande pour {{ group_name }} {% if order.phone_number %} ({{ order.phone_number }}) {% endif %}

{% include "includes/delivery_head.html" %}
{% for producer in delivery.producers.values() %} {% if producer.has_active_products(delivery) %}

{{ producer.name }}

{% if producer.has_packing %} {% endif %} {% if delivery.status == delivery.ADJUSTMENT or force_adjustment %} {% endif %} {% for product in delivery.get_products_by(producer.id) %} {% if not product.rupture %} {% if producer.has_packing %} {% endif %} {% if delivery.status == delivery.ADJUSTMENT or force_adjustments %} {% endif %} {%- endif %} {% endfor %}
Produit PrixConditionnementCommandeAjustement +/−
{{ product }} {% if product.rupture %}(RUPTURE !){% endif %}
{% if product.description and product.description | length > 30 %} + d'infos… {% else %} {{ product.description }} {% endif %}
{{ product.price | round(2) }} €{{ product.packing or "—" }}{% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} (manque {{ delivery.product_missing(product) }}){% endif %}
{% if not (delivery.status == delivery.ADJUSTMENT or force_adjustments) %}
x {{ product.unit }}
{% endif %}
x {{ product.unit }}
{%- endif %} {% endfor %}

On y est presque ! Est-ce que tu peux entrer un numéro de téléphone au cas où on ait besoin de vous joindre ?

{% if delivery.status != delivery.CLOSED or request.user.is_staff %} {% endif %} {% if request.user.is_staff and delivery.status == delivery.CLOSED %} Ajuster {% endif %}
{% endblock body %}