Skip to content

Commit dab3389

Browse files
committed
/collection/estimation: show also total price in CZK.
1 parent 08621f4 commit dab3389

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/webapp/WEB-INF/views/collection/estimation.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,16 @@ <h3 class="text-center" th:text="#{t_collection_of(${ownerName})}">
116116
</tbody>
117117
<tfoot>
118118
<!--/* @todo #884 /collection/{slug}/estimation: optimize summing of prices */-->
119-
<tr class="info" th:with="totalRub=${#aggregates.sum(seriesOfCollection.?[price != null and currency.toString() == 'RUB'].![price])},totalUsd=${#aggregates.sum(seriesOfCollection.?[price != null and currency.toString() == 'USD'].![price])},totalEur=${#aggregates.sum(seriesOfCollection.?[price != null and currency.toString() == 'EUR'].![price])}">
119+
<tr class="info" th:with="totalRub=${#aggregates.sum(seriesOfCollection.?[price != null and currency.toString() == 'RUB'].![price])},totalUsd=${#aggregates.sum(seriesOfCollection.?[price != null and currency.toString() == 'USD'].![price])},totalEur=${#aggregates.sum(seriesOfCollection.?[price != null and currency.toString() == 'EUR'].![price])},totalCzk=${#aggregates.sum(seriesOfCollection.?[price != null and currency.toString() == 'CZK'].![price])}">
120120
<th th:text="|#{t_total}:|">Total:</th>
121121
<th>
122122
<span th:text="|${totalRub} RUB|" th:if="${totalRub != null}" th:remove="tag">14.4 RUB</span>
123123
<br th:if="${totalUsd != null and totalRub != null}" />
124124
<span th:text="|${totalUsd} USD|" th:if="${totalUsd != null}" th:remove="tag">2 USD</span>
125125
<br th:if="${totalEur != null and (totalRub != null or totalUsd != null)}" />
126126
<span th:text="|${totalEur} EUR|" th:if="${totalEur != null}" th:remove="tag">7 EUR</span>
127+
<br th:if="${totalCzk != null and (totalRub != null or totalUsd != null or totalEur != null)}" />
128+
<span th:text="|${totalCzk} CZK|" th:if="${totalCzk != null}" th:remove="tag">707 CZK</span>
127129
</th>
128130
</tr>
129131
</tfoot>

0 commit comments

Comments
 (0)