membershipworks: Reword event invoice, add date to body
All checks were successful
Ruff / ruff (push) Successful in 2m9s
Test / test (push) Successful in 6m27s

This commit is contained in:
Adam Goldsmith 2024-04-27 10:57:04 -04:00
parent ae1116fea8
commit e6a7e0c974
3 changed files with 9 additions and 4 deletions

View File

@ -26,6 +26,11 @@
{% endif %}
{% endwith %}
</p>
{% if now is not None %}
<p>
<b>Invoice Date:</b> {{ now|date }}
</p>
{% endif %}
<p>
<b>Attendees:</b> {{ event.details.cnt }}/{{ event.details.cap }}
</p>
@ -50,7 +55,7 @@
<div class="vr d-none d-md-block m-4 p-0"></div>
<div class="col-12 col-md-4">
<div>
<h3>Remit to:</h3>
<h3>From:</h3>
<div>{{ event.instructor.member.account_name }}</div>
<div>{{ event.instructor.member.address_street }}</div>
<div>
@ -59,6 +64,7 @@
{{ event.instructor.member.address_postal_code }}
</div>
<div>{{ event.instructor.member.email }}</div>
<div>{{ event.instructor.member.phone }}</div>
</div>
</div>
</div>

View File

@ -17,6 +17,7 @@
<body style="font-size: 10pt;">
<header>
<h3>Bill To:</h3>
<div>TwinState MakerSpaces, Inc.</div>
<div>PO Box 100</div>
<div>Lebanon, NH 03766-0100</div>

View File

@ -359,9 +359,7 @@ class EventDetailView(
invoice = EventInvoice(
uuid=invoice_uuid,
event=event,
# NOTE: this needs to be resolved before the object is
# saved, so cannot use the Now() db function
date_submitted=timezone.now(),
date_submitted=pdf_context["now"],
amount=event.total_due_to_instructor,
)
# removed), currently used in event_invoice_admin.dj.html.