From 4fd0e13198acf5980d16ebdf354aef65973eface Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Tue, 7 Oct 2025 12:07:40 +0200 Subject: [PATCH] Clarify balancing entry account selection logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Debit balancing entries use 4456700 (TVA à payer) - Credit balancing entries use 4455100 (TVA à recevoir) - Account selection based on whether the balancing entry is debit or credit - Proper French VAT accounting for balancing entries --- core/class/declarationtva_pdf.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 39d5f72..9f1f963 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -2074,18 +2074,18 @@ class DeclarationTVA_PDF } if ($difference < 0) { - // More credits than debits, add debit to balance (TVA à payer) + // More credits than debits, add debit to balance $entry = array( - 'account_code' => '4456700', + 'account_code' => '4456700', // Debit entry uses 4456700 'account_label' => $this->getAccountLabel('4456700'), 'entry_label' => $declaration->declaration_name, 'debit' => $this->formatAmount(round(abs($difference))), 'credit' => '' ); } else { - // More debits than credits, add credit to balance (TVA à recevoir) + // More debits than credits, add credit to balance $entry = array( - 'account_code' => '4455100', + 'account_code' => '4455100', // Credit entry uses 4455100 'account_label' => $this->getAccountLabel('4455100'), 'entry_label' => $declaration->declaration_name, 'debit' => '',