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
This commit is contained in:
Frank Cools 2025-10-07 15:18:43 +02:00
parent 00add0de70
commit 0d37fc00aa

View File

@ -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(