Fix decimals in checkout page
This commit is contained in:
parent
d1301f6988
commit
d4d1426438
@ -49,7 +49,7 @@
|
||||
<td><a th:href="@{/shop/articles/{id}(id = ${item.article.id})}"
|
||||
th:text="${item.article.title}"></a></td>
|
||||
<td><span
|
||||
th:text="${#numbers.formatDecimal(item.article.getPriceGross(), 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
th:text="${#numbers.formatDecimal(item.article.getPriceGross() * 0.01, 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
EUR <b>x</b></td>
|
||||
<td>
|
||||
<form method="POST" th:action="@{/shop/articles/{id}(id = ${item.article.id})}">
|
||||
@ -106,7 +106,7 @@ Musterstraße 4
|
||||
<tr>
|
||||
<th>Artikel (Netto)</th>
|
||||
<th><span
|
||||
th:text="${#numbers.formatDecimal(checkoutTotals.net, 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
th:text="${#numbers.formatDecimal(checkoutTotals.net * 0.01, 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
EUR
|
||||
</th>
|
||||
</tr>
|
||||
@ -114,7 +114,7 @@ Musterstraße 4
|
||||
<tr>
|
||||
<th>Umsatzsteuer (<span th:text="${item.getKey()}"></span>%)</th>
|
||||
<th><span
|
||||
th:text="${#numbers.formatDecimal(item.getValue(), 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
th:text="${#numbers.formatDecimal(item.getValue() * 0.01, 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
EUR
|
||||
</th>
|
||||
</tr>
|
||||
@ -122,7 +122,7 @@ Musterstraße 4
|
||||
<tr class="secondary">
|
||||
<th>Gesamt:</th>
|
||||
<th><span
|
||||
th:text="${#numbers.formatDecimal(checkoutTotals.total, 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
th:text="${#numbers.formatDecimal(checkoutTotals.total * 0.01, 1, 'POINT', 2, 'COMMA')}"></span>
|
||||
EUR
|
||||
</th>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user