Use bcmath to calculate correct prices.

This commit is contained in:
Jan Böhmer 2019-09-01 13:56:14 +02:00
parent 43c439bc9e
commit 4391be448d
9 changed files with 82 additions and 98 deletions

View file

@ -35,10 +35,11 @@
{{ detail.MinDiscountQuantity }}
</td>
<td>
{{ detail.Price | moneyFormat }} <i>{% trans %}part.order.price_per{% endtrans %}</i> {{ detail.PriceRelatedQuantity }}
{{ detail.price | moneyFormat(detail.currency) }}
{# {{ detail.Price | moneyFormat }} <i>{% trans %}part.order.price_per{% endtrans %}</i> {{ detail.PriceRelatedQuantity }} #}
</td>
<td>
{{ detail.PricePerUnit | moneyFormat}}
{{ detail.PricePerUnit | moneyFormat(detail.currency) }}
</td>
</tr>
{% endfor %}