membershipworks: Show materials fee as $0.00 in invoice, even when unknown

This commit is contained in:
Adam Goldsmith 2024-05-01 12:44:07 -04:00
parent e6a7e0c974
commit 05bdc92a36

View File

@ -36,14 +36,14 @@
</p>
<p>
<b>Materials Fee <span class="font-monospace fw-light">[m]</span>:</b>
{% if event.materials_fee_included_in_price is None %}
Unknown if included in price
{% elif event.materials_fee_included_in_price %}
{% if event.materials_fee_included_in_price or event.materials_fee == 0 %}
{% if event.materials_fee is not None %}
${{ event.materials_fee|floatformat:2 }}
{% else %}
Not defined
{% endif %}
{% elif event.materials_fee_included_in_price is None %}
Unknown if included in price
{% else %}
Not collected by CMS
{% endif %}