From c36b9c436b3ecdbd844763cc52a6066e47103c85 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Wed, 8 Oct 2025 01:36:11 +0200 Subject: [PATCH] Fix official template recognition for PDF generation - Update isFillablePDF() to recognize ca3_official_template.pdf - Ensure official template is used for CA-3 form generation - Fix missing CA-3 pages in PDF output - Use official template instead of falling back to basic PDF generation --- core/class/declarationtva_pdf.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 96fd304..764f09c 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -286,8 +286,9 @@ class DeclarationTVA_PDF */ private function isFillablePDF($pdf_path) { - // Simple check - if it's our custom template, assume it's fillable - return strpos($pdf_path, 'ca3_custom_template.pdf') !== false; + // Check if it's our template (custom or official) + return strpos($pdf_path, 'ca3_custom_template.pdf') !== false || + strpos($pdf_path, 'ca3_official_template.pdf') !== false; } /**