Use proper formatting for pricedetails quantities, when using a non integer part unit.

This commit is contained in:
Jan Böhmer 2019-09-01 14:02:24 +02:00
parent 4391be448d
commit 3ab53ba863
2 changed files with 3 additions and 3 deletions

View file

@ -32,10 +32,10 @@
{% for detail in order.pricedetails %}
<tr>
<td>
{{ detail.MinDiscountQuantity }}
{{ detail.MinDiscountQuantity | amountFormat(part.partUnit) }}
</td>
<td>
{{ detail.price | moneyFormat(detail.currency) }}
{{ detail.price | moneyFormat(detail.currency) }} <i>{% trans %}part.order.price_per{% endtrans %}</i> {{ detail.PriceRelatedQuantity | amountFormat(part.partUnit) }}
{# {{ detail.Price | moneyFormat }} <i>{% trans %}part.order.price_per{% endtrans %}</i> {{ detail.PriceRelatedQuantity }} #}
</td>
<td>