Port b9feceba (Do not show a price if there are mandatory non-free addons) to voucher redemption

This commit is contained in:
Raphael Michel
2022-11-10 14:48:55 +01:00
parent dfedf09656
commit 7b97204f2f

View File

@@ -149,7 +149,9 @@
from {{ minprice }}
{% endblocktrans %}
{% elif not item.min_price and not item.max_price %}
{% trans "FREE" context "price" %}
{% if not item.mandatory_priced_addons %}
<span class="text-uppercase">{% trans "free" context "price" %}</span>
{% endif %}
{% else %}
{{ item.min_price|money:event.currency }}
{% endif %}
@@ -205,7 +207,9 @@
</div>
<p>
{% elif not var.display_price.gross %}
{% trans "FREE" context "price" %}
{% if not item.mandatory_priced_addons %}
<span class="text-uppercase">{% trans "free" context "price" %}</span>
{% endif %}
{% elif event.settings.display_net_prices %}
{{ var.display_price.net|money:event.currency }}
{% else %}
@@ -337,7 +341,9 @@
</div>
<p>
{% elif not item.display_price.gross %}
{% trans "FREE" context "price" %}
{% if not item.mandatory_priced_addons %}
<span class="text-uppercase">{% trans "free" context "price" %}</span>
{% endif %}
{% elif event.settings.display_net_prices %}
{{ item.display_price.net|money:event.currency }}
{% else %}