Compare commits

...

2 Commits

Author SHA1 Message Date
0f1640a5d6 membershipworks: Adjust invoice PDF spacing
All checks were successful
Ruff / ruff (push) Successful in 1m49s
Test / test (push) Successful in 6m20s
2024-05-01 12:48:43 -04:00
05bdc92a36 membershipworks: Show materials fee as $0.00 in invoice, even when unknown 2024-05-01 12:48:43 -04:00
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
@page { @page {
size: letter portrait; size: letter portrait;
margin: 1.2in 0.7in; margin: 1.5in 0.7in 1.2in;
@top-center { @top-center {
content: "Event Invoice"; content: "Event Invoice";
@ -57,7 +57,7 @@ header {
} }
body { body {
margin-top: 1em; margin-top: 3em;
} }
p { p {

View File

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