From 5cae470880d9366ed83c6b08bd1ddef002e6d113 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Wed, 8 Oct 2025 15:09:32 +0200 Subject: [PATCH] Add debug info to show raw database values in declaration list --- declarationtvaindex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/declarationtvaindex.php b/declarationtvaindex.php index f9698aa..ec488a0 100644 --- a/declarationtvaindex.php +++ b/declarationtvaindex.php @@ -147,8 +147,8 @@ if (empty($declarations)) { // VAT refund case print '' . price($d['vat_credit']) . '
' . $langs->trans("VATToReceive") . ''; } elseif ($d['net_vat_due'] > 0) { - // VAT due case - print '' . price($d['net_vat_due']) . '
' . $langs->trans("NetVATDue") . ''; + // VAT due case - DEBUG: Show raw value + print '' . price($d['net_vat_due']) . '
' . $langs->trans("NetVATDue") . ' (DB: ' . $d['net_vat_due'] . ')'; } else { // Balanced case print '' . price(0) . '
' . $langs->trans("VATBalanced") . '';