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})}"
|
<td><a th:href="@{/shop/articles/{id}(id = ${item.article.id})}"
|
||||||
th:text="${item.article.title}"></a></td>
|
th:text="${item.article.title}"></a></td>
|
||||||
<td><span
|
<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>
|
EUR <b>x</b></td>
|
||||||
<td>
|
<td>
|
||||||
<form method="POST" th:action="@{/shop/articles/{id}(id = ${item.article.id})}">
|
<form method="POST" th:action="@{/shop/articles/{id}(id = ${item.article.id})}">
|
||||||
@ -106,7 +106,7 @@ Musterstraße 4
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Artikel (Netto)</th>
|
<th>Artikel (Netto)</th>
|
||||||
<th><span
|
<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
|
EUR
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -114,7 +114,7 @@ Musterstraße 4
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Umsatzsteuer (<span th:text="${item.getKey()}"></span>%)</th>
|
<th>Umsatzsteuer (<span th:text="${item.getKey()}"></span>%)</th>
|
||||||
<th><span
|
<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
|
EUR
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -122,7 +122,7 @@ Musterstraße 4
|
|||||||
<tr class="secondary">
|
<tr class="secondary">
|
||||||
<th>Gesamt:</th>
|
<th>Gesamt:</th>
|
||||||
<th><span
|
<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
|
EUR
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user