forked from CGM_Public/pretix_original
Use "Tax Invoice" as the invoice headline in Australia
This commit is contained in:
@@ -490,10 +490,13 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
|
|||||||
|
|
||||||
story = [
|
story = [
|
||||||
NextPageTemplate('FirstPage'),
|
NextPageTemplate('FirstPage'),
|
||||||
Paragraph(pgettext('invoice', 'Invoice')
|
Paragraph(
|
||||||
if not self.invoice.is_cancellation
|
(
|
||||||
else pgettext('invoice', 'Cancellation'),
|
pgettext('invoice', 'Tax Invoice') if str(self.invoice.invoice_from_country) == 'AU'
|
||||||
self.stylesheet['Heading1']),
|
else pgettext('invoice', 'Invoice')
|
||||||
|
) if not self.invoice.is_cancellation else pgettext('invoice', 'Cancellation'),
|
||||||
|
self.stylesheet['Heading1']
|
||||||
|
),
|
||||||
Spacer(1, 5 * mm),
|
Spacer(1, 5 * mm),
|
||||||
NextPageTemplate('OtherPages'),
|
NextPageTemplate('OtherPages'),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user