mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Add product reference in order summary
Useful in post delivery checks (it appears in the liste d'émargement) and it's always better non ambigous which product it is
This commit is contained in:
parent
c410a4558f
commit
c2c466ce27
1 changed files with 4 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
|||
<table class="order">
|
||||
<tr><th class="product">Produit</th><th class="price">Prix unitaire</th><th class="amount">Quantité</th></tr>
|
||||
<tr><th>Réf.</th><th class="product">Produit</th><th class="price">Prix unitaire</th><th class="amount">Quantité</th></tr>
|
||||
{% for product in delivery.products %}
|
||||
{% if order[product].quantity %}
|
||||
<tr>
|
||||
<td>{{ product.ref }}</td>
|
||||
<th class="product" style="text-align: left;">{{ product }}</th>
|
||||
<td>{{ product.price | round(2) }} €</td><td>{{ order[product].quantity }}</td>
|
||||
<td>{{ product.price | round(2) }} €</td>
|
||||
<td>{{ order[product].quantity }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue