Add field internal_reference to invoice addresses

This commit is contained in:
Raphael Michel
2017-10-27 00:27:06 +02:00
parent 2b8d12f987
commit b857157c7b
14 changed files with 73 additions and 8 deletions

View File

@@ -331,6 +331,12 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
NextPageTemplate('OtherPages'),
]
if self.invoice.internal_reference:
story.append(Paragraph(
pgettext('invoice', 'Your reference: {reference}').format(reference=self.invoice.internal_reference),
self.stylesheet['Normal']
))
if self.invoice.introductory_text:
story.append(Paragraph(self.invoice.introductory_text, self.stylesheet['Normal']))
story.append(Spacer(1, 10 * mm))