Merge branch 'round-prices' into 'master'

Round prices to two decimals max

See merge request ybon/copanier!10
This commit is contained in:
Yohan 2019-04-21 10:12:46 +02:00
commit f9b69f815c
3 changed files with 3 additions and 3 deletions

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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 %}