summaryrefslogtreecommitdiff
path: root/postgresqleu
diff options
context:
space:
mode:
authorMagnus Hagander2025-04-23 18:15:42 +0000
committerMagnus Hagander2025-04-23 18:16:54 +0000
commit54c3aa0c0062828d4f953a7ebea4dbbc5fb3fab0 (patch)
tree1cd1c2880a3af5c27ee2df115161e4d8721ff309 /postgresqleu
parent1ae47549c1f7e657c4a0ca5b2eb6aed3f9051705 (diff)
Add conference date to prepaid vouchers invoice
Do this by removing the word "prepaid" from the title of the invoice to make it more likely to fit. Instead, add it to the individual invoice rows where there should be more space available.
Diffstat (limited to 'postgresqleu')
-rw-r--r--postgresqleu/confsponsor/invoicehandler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/confsponsor/invoicehandler.py b/postgresqleu/confsponsor/invoicehandler.py
index c74f1929..b8145c99 100644
--- a/postgresqleu/confsponsor/invoicehandler.py
+++ b/postgresqleu/confsponsor/invoicehandler.py
@@ -296,7 +296,7 @@ class VoucherInvoiceProcessor(object):
# Generate an invoice for prepaid vouchers
def create_voucher_invoice(conference, invoiceaddr, user, rt, num):
invoicerows = [
- ['Voucher for "%s"' % rt.regtype, 1, rt.cost, rt.conference.vat_registrations]
+ ['Prepaid voucher for "%s"' % rt.regtype, 1, rt.cost, rt.conference.vat_registrations]
] * num
manager = InvoiceManager()
@@ -306,7 +306,7 @@ def create_voucher_invoice(conference, invoiceaddr, user, rt, num):
user.email,
user.first_name + ' ' + user.last_name,
invoiceaddr,
- 'Prepaid vouchers for %s' % conference.conferencename,
+ 'Vouchers for %s' % conference.name_and_date,
timezone.now(),
timezone.now(),
invoicerows,