From 0d385337b061516fd324fdfbfc4224664be21594 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Sat, 13 Jun 2026 21:34:47 +0100 Subject: [PATCH 1/4] Document custom invoice PDF template migration --- src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc index a99070f..228a554 100644 --- a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc +++ b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc @@ -241,6 +241,12 @@ The following filters and functions have been **added**: | `hash` | Hash a value (defaults to xxh128) | | `api_url` | Supports `role` parameter to override the API area | +### Custom Invoice PDF Templates + +If you previously created a `custom-pdf.twig` template in 0.7.x, the patcher has migrated it to `custom-invoice.twig`. However, the patcher does **not** update the filter usage inside your custom template. + +Review your `custom-invoice.twig` for any removed or renamed filters from the table above and update them accordingly. Refer to the bundled `default-invoice.twig` as a reference for the correct template syntax. + ### Theme HTML Changes Key template changes in both bundled themes (admin_default and huraga): From f2bffd2055ab8a04da5bb00bfcbc5e46930777c6 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Sat, 13 Jun 2026 21:37:20 +0100 Subject: [PATCH 2/4] Fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc index 228a554..089cca3 100644 --- a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc +++ b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc @@ -243,7 +243,7 @@ The following filters and functions have been **added**: ### Custom Invoice PDF Templates -If you previously created a `custom-pdf.twig` template in 0.7.x, the patcher has migrated it to `custom-invoice.twig`. However, the patcher does **not** update the filter usage inside your custom template. +If you previously created a `custom-pdf.twig` template in 0.7.x, the patcher has migrated it to `custom-invoice.twig`. However, the patcher does **not** update the filter usage inside your custom template. Review your `custom-invoice.twig` for any removed or renamed filters from the table above and update them accordingly. Refer to the bundled `default-invoice.twig` as a reference for the correct template syntax. From 56c3cfc8dddcad03879ec9b6d411f2e3566527f6 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Sat, 13 Jun 2026 21:37:50 +0100 Subject: [PATCH 3/4] Fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc index 089cca3..3e5abed 100644 --- a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc +++ b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc @@ -245,7 +245,7 @@ The following filters and functions have been **added**: If you previously created a `custom-pdf.twig` template in 0.7.x, the patcher has migrated it to `custom-invoice.twig`. However, the patcher does **not** update the filter usage inside your custom template. -Review your `custom-invoice.twig` for any removed or renamed filters from the table above and update them accordingly. Refer to the bundled `default-invoice.twig` as a reference for the correct template syntax. +Review `/modules/Invoice/templates/pdf/custom-invoice.twig` for any removed or renamed filters from the table above and update them accordingly. Refer to the bundled `/modules/Invoice/templates/pdf/default-invoice.twig` as a reference for the correct template syntax. ### Theme HTML Changes From b88d3f54504d52ad13d580258373e6987eaaaab6 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Sat, 13 Jun 2026 21:39:15 +0100 Subject: [PATCH 4/4] Remove leading slashes from template paths --- src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc index 3e5abed..0a63168 100644 --- a/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc +++ b/src/content/docs/maintenance/Updating/0-7-to-0-8.mdoc @@ -245,7 +245,7 @@ The following filters and functions have been **added**: If you previously created a `custom-pdf.twig` template in 0.7.x, the patcher has migrated it to `custom-invoice.twig`. However, the patcher does **not** update the filter usage inside your custom template. -Review `/modules/Invoice/templates/pdf/custom-invoice.twig` for any removed or renamed filters from the table above and update them accordingly. Refer to the bundled `/modules/Invoice/templates/pdf/default-invoice.twig` as a reference for the correct template syntax. +Review `modules/Invoice/templates/pdf/custom-invoice.twig` for any removed or renamed filters from the table above and update them accordingly. Refer to the bundled `modules/Invoice/templates/pdf/default-invoice.twig` as a reference for the correct template syntax. ### Theme HTML Changes