From 54c3aa0c0062828d4f953a7ebea4dbbc5fb3fab0 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 23 Apr 2025 20:15:42 +0200 Subject: [PATCH] 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. --- postgresqleu/confsponsor/invoicehandler.py | 4 ++-- 1 file 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, -- 2.39.5