From c2c466ce2714ca83b171ff03d7ac4530030de0b6 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sat, 25 May 2019 19:17:41 +0200 Subject: [PATCH] Add product reference in order summary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Useful in post delivery checks (it appears in the liste d'émargement) and it's always better non ambigous which product it is --- copanier/templates/includes/order_summary.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/copanier/templates/includes/order_summary.html b/copanier/templates/includes/order_summary.html index ea3020f..8107dfb 100644 --- a/copanier/templates/includes/order_summary.html +++ b/copanier/templates/includes/order_summary.html @@ -1,10 +1,12 @@ - + {% for product in delivery.products %} {% if order[product].quantity %} + - + + {% endif %} {% endfor %}
ProduitPrix unitaireQuantité
Réf.ProduitPrix unitaireQuantité
{{ product.ref }} {{ product }}{{ product.price | round(2) }} €{{ order[product].quantity }}{{ product.price | round(2) }} €{{ order[product].quantity }}