mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-01 16:54:32 +02:00
Use proper formatting for pricedetails quantities, when using a non integer part unit.
This commit is contained in:
parent
4391be448d
commit
3ab53ba863
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue