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 {
size: letter portrait;
margin: 1.2in 0.7in;
margin: 1.5in 0.7in 1.2in;
@top-center {
content: "Event Invoice";
@ -57,7 +57,7 @@ header {
}
body {
margin-top: 1em;
margin-top: 3em;
}
p {

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 %}