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
This commit is contained in:
Frank Cools 2025-10-08 01:36:11 +02:00
parent 82a996700e
commit c36b9c436b

View File

@ -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;
}
/**