Use "Tax Invoice" as the invoice headline in Australia

This commit is contained in:
Raphael Michel
2019-12-07 12:12:20 +01:00
parent 381ecd6d75
commit b3b1d09690

View File

@@ -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'),
] ]