Add custom field for invoice addresses

This commit is contained in:
Raphael Michel
2020-02-18 09:21:00 +01:00
parent 1c03d5d305
commit 9f6a3f9a6a
13 changed files with 67 additions and 2 deletions

View File

@@ -459,6 +459,12 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
def _get_intro(self):
story = []
if self.invoice.custom_field:
story.append(Paragraph(
'{}: {}'.format(self.invoice.event.settings.invoice_address_custom_field, self.invoice.custom_field),
self.stylesheet['Normal']
))
if self.invoice.internal_reference:
story.append(Paragraph(
pgettext('invoice', 'Customer reference: {reference}').format(reference=self.invoice.internal_reference),