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
This commit is contained in:
Frank Cools 2025-10-07 12:31:24 +02:00
parent 8054e03026
commit e4a940a1b4

View File

@ -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; $remaining_diff = abs($difference) - $vat_td_amount;
if ($remaining_diff >= 0.01) { if ($remaining_diff >= 0.01) {
if ($difference < 0) { if ($difference < 0) {