mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
Round prices to two decimals max
This commit is contained in:
parent
34d6183ad4
commit
5c93a05524
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
|||
{% for product in delivery.products %}
|
||||
<tr>
|
||||
<th class="product">{{ product }}</th>
|
||||
<td>{{ product.price }} €</td>
|
||||
<td>{{ product.price | round(2) }} €</td>
|
||||
{% if delivery.has_packing %}
|
||||
<td class="packing">{{ product.packing or '—'}}</td>
|
||||
{% endif %}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% if order[product].quantity %}
|
||||
<tr>
|
||||
<th class="product" style="text-align: left;">{{ product }}</th>
|
||||
<td>{{ product.price }} €</td><td>{{ order[product].quantity }}</td>
|
||||
<td>{{ product.price | round(2) }} €</td><td>{{ order[product].quantity }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
{% endwith %}
|
||||
{% endif %}</p>
|
||||
</th>
|
||||
<td>{{ product.price }} €</td>
|
||||
<td>{{ product.price | round(2) }} €</td>
|
||||
{% if delivery.has_packing %}
|
||||
<td{% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} class="missing" title="Les commandes individuelles ne correspondent pas aux conditionnements"{% endif %}>{{ product.packing or "—" }}{% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} (−{{ delivery.product_missing(product) }}){% endif %}</td>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue