From 0d37fc00aa1162c1b3d76fea67a49912c86eec90 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Tue, 7 Oct 2025 15:18:43 +0200 Subject: [PATCH] Add debugging to trace entry creation - Added debug logging to see what amounts are being created - Cleared caches and reset OPcache - Should help identify if the new logic is being executed - Will show exactly what values are being put in the journal table --- 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 853b41b..cdc3cf0 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -2083,6 +2083,8 @@ class DeclarationTVA_PDF $rounding_diff = $difference - $rounded_amount; error_log("DeclarationTVA: Difference: " . $difference . ", Rounded: " . $rounded_amount . ", Rounding diff: " . $rounding_diff); + error_log("DeclarationTVA: Creating 4455100 entry with amount: " . abs($rounded_amount)); + error_log("DeclarationTVA: Creating 758000 entry with amount: " . abs($rounding_diff)); // Rounded difference on 4455100 $balancing_entries[] = array(