Improve price information
All checks were successful
Django CI/CD / test (push) Successful in 1m1s
Django CI/CD / build-and-push (push) Successful in 2m9s

This commit is contained in:
2025-01-30 16:38:13 +01:00
parent 4ec808eeec
commit 6f62889e92
10 changed files with 123 additions and 15 deletions

View File

@ -0,0 +1 @@
<span title="Price is a result of conversion and rounding." class="decoration-dotted underline">{{ slot }}</span>

View File

@ -20,13 +20,12 @@
</a>
</div>
<div>
Price:
{% if purchase.converted_price %}
{{ purchase.converted_price | floatformat }} {{ purchase.converted_currency }}
{% else %}
None
{% endif %}
({{ purchase.price | floatformat }} {{ purchase.price_currency }})
<p>
Price:
<c-price-converted>{{ purchase.standardized_price }}</c-price-converted>
({{ purchase.price | floatformat:2 }} {{ purchase.price_currency }})
</p>
<p>Price per game: <c-price-converted>{{ purchase.price_per_game | floatformat:0 }} {{ purchase.converted_currency }}</c-price-converted> </p>
</div>
<div>
<h2 class="text-base">Items:</h2>