From 07843dcf31278a0462efa3d891a14ba763bab3ea Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Fri, 3 Oct 2025 14:58:59 +0200 Subject: [PATCH] Add debug logging for lines 28 and 29 - Added debug logging to see D28_amount and D29_amount values - This will help identify why lines 28 and 29 are not displaying in PDF - Debug will show if the values are being extracted correctly from ca3_data --- core/class/declarationtva_pdf.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index ea602a4..7abb6a2 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -349,6 +349,8 @@ class DeclarationTVA_PDF error_log("DeclarationTVA: A1_amount will be: " . $this->getCA3LineAmount($ca3_data, 'A1')); error_log("DeclarationTVA: B08_vat_amount will be: " . $this->getCA3LineAmount($ca3_data, '08', 'vat_amount')); error_log("DeclarationTVA: B09_vat_amount will be: " . $this->getCA3LineAmount($ca3_data, '09', 'vat_amount')); + error_log("DeclarationTVA: D28_amount will be: " . $this->getCA3LineAmount($ca3_data, '28')); + error_log("DeclarationTVA: D29_amount will be: " . $this->getCA3LineAmount($ca3_data, '29')); error_log("DeclarationTVA: total_vat_collected will be: " . $this->formatAmount($declaration->total_vat_collected)); // Section B: TVA due (Base + VAT columns)