From 8a73888aedcd6ce1259039917de645d2f7093e89 Mon Sep 17 00:00:00 2001
From: Adam Daley
Date: Sat, 17 Jan 2026 01:15:08 +0000
Subject: [PATCH] Display Before and After invoice content in PDF (#3169)
Fix #3158: Display Before and After invoice content in PDF
The PDF invoice template was missing the code to render text_1 (before
invoice table) and text_2 (after invoice table) fields, even though these
fields are properly stored in the database and passed to the template.
Changes made:
- Added text_1 rendering before the invoice items table
- Added text_2 rendering after the invoice items table but before footer
- Used consistent styling and markdown filter matching HTML templates
The fix resolves the issue where banking details and other notes entered
in the Before/After Invoice fields were not appearing in PDF invoices.
---
src/modules/Invoice/pdf_template/default-pdf.twig | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/modules/Invoice/pdf_template/default-pdf.twig b/src/modules/Invoice/pdf_template/default-pdf.twig
index 148c9c2ef..8a3433900 100644
--- a/src/modules/Invoice/pdf_template/default-pdf.twig
+++ b/src/modules/Invoice/pdf_template/default-pdf.twig
@@ -70,6 +70,12 @@
+ {% if invoice.text_1 %}
+
+ {{ invoice.text_1|markdown }}
+
+ {% endif %}
+
+
+ {% if invoice.text_2 %}
+
+ {{ invoice.text_2|markdown }}
+
+ {% endif %}
+