From b3b1d09690fdc72991ad29e738f24cae2794727e Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 7 Dec 2019 12:12:20 +0100 Subject: [PATCH] Use "Tax Invoice" as the invoice headline in Australia --- src/pretix/base/invoice.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pretix/base/invoice.py b/src/pretix/base/invoice.py index 44ae39d5d..680f0f5c7 100644 --- a/src/pretix/base/invoice.py +++ b/src/pretix/base/invoice.py @@ -490,10 +490,13 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): story = [ NextPageTemplate('FirstPage'), - Paragraph(pgettext('invoice', 'Invoice') - if not self.invoice.is_cancellation - else pgettext('invoice', 'Cancellation'), - self.stylesheet['Heading1']), + Paragraph( + ( + pgettext('invoice', 'Tax Invoice') if str(self.invoice.invoice_from_country) == 'AU' + else pgettext('invoice', 'Invoice') + ) if not self.invoice.is_cancellation else pgettext('invoice', 'Cancellation'), + self.stylesheet['Heading1'] + ), Spacer(1, 5 * mm), NextPageTemplate('OtherPages'), ]