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 %} {% for detail in order.pricedetails %}
<tr> <tr>
<td> <td>
{{ detail.MinDiscountQuantity }} {{ detail.MinDiscountQuantity | amountFormat(part.partUnit) }}
</td> </td>
<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 }} #} {# {{ detail.Price | moneyFormat }} <i>{% trans %}part.order.price_per{% endtrans %}</i> {{ detail.PriceRelatedQuantity }} #}
</td> </td>
<td> <td>

View file

@ -1045,7 +1045,7 @@ Subelemente werden beim Löschen nach oben verschoben.</target>
</trans-unit> </trans-unit>
<trans-unit id="cpRdMwo" resname="part.order.price_per"> <trans-unit id="cpRdMwo" resname="part.order.price_per">
<source>part.order.price_per</source> <source>part.order.price_per</source>
<target state="translated">Preis pro</target> <target state="translated">pro</target>
</trans-unit> </trans-unit>
<trans-unit id="EKnfKFl" resname="edit.caption_short"> <trans-unit id="EKnfKFl" resname="edit.caption_short">
<source>edit.caption_short</source> <source>edit.caption_short</source>