mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Merge branch 'round-prices' into 'master'
Round prices to two decimals max See merge request ybon/copanier!10
This commit is contained in:
commit
f9b69f815c
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
||||||
{% for product in delivery.products %}
|
{% for product in delivery.products %}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="product">{{ product }}</th>
|
<th class="product">{{ product }}</th>
|
||||||
<td>{{ product.price }} €</td>
|
<td>{{ product.price | round(2) }} €</td>
|
||||||
{% if delivery.has_packing %}
|
{% if delivery.has_packing %}
|
||||||
<td class="packing">{{ product.packing or '—'}}</td>
|
<td class="packing">{{ product.packing or '—'}}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% if order[product].quantity %}
|
{% if order[product].quantity %}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="product" style="text-align: left;">{{ product }}</th>
|
<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>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}</p>
|
{% endif %}</p>
|
||||||
</th>
|
</th>
|
||||||
<td>{{ product.price }} €</td>
|
<td>{{ product.price | round(2) }} €</td>
|
||||||
{% if delivery.has_packing %}
|
{% 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>
|
<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 %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue