From e4a940a1b40d143c91d5263f5db3f71ad8256596 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Tue, 7 Oct 2025 12:31:24 +0200 Subject: [PATCH] Clarify that rounding entries use real values (not rounded) - Rounding entries (658000/758000) already use formatAmountReal() for real values - Added comment to clarify this behavior - Main balancing entry uses rounded VAT amount from TD line - Rounding entry uses real difference with decimals - Ensures proper accounting precision for rounding differences --- core/class/declarationtva_pdf.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index d2613ed..6866a9a 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -2096,7 +2096,7 @@ class DeclarationTVA_PDF ); } - // Rounding entry for the remaining difference + // Rounding entry for the remaining difference (use real value, not rounded) $remaining_diff = abs($difference) - $vat_td_amount; if ($remaining_diff >= 0.01) { if ($difference < 0) {