From db0432b502e6d5c2abaf929d894c677bb9faf259 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Mon, 6 Oct 2025 17:41:51 +0200 Subject: [PATCH] Add debugging to declaration list query processing - Added error_log to track each declaration being processed in the list - Shows declaration ID, status, and number for each row - Will help identify if declarations are being processed correctly - Should show what status each declaration has in the list query --- declarationtvaindex.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/declarationtvaindex.php b/declarationtvaindex.php index e33e5fb..1b26f81 100644 --- a/declarationtvaindex.php +++ b/declarationtvaindex.php @@ -128,6 +128,8 @@ if (empty($declarations)) { print ''; foreach ($declarations as $d) { + error_log("DeclarationTVA List Query Debug - Processing declaration ID: " . $d['rowid'] . ", Status: " . $d['status'] . ", Number: " . $d['declaration_number']); + print ''; print '' . $d['declaration_number'] . ''; print '' . dol_print_date($d['start_date'], 'day') . ' - ' . dol_print_date($d['end_date'], 'day') . '';