From bc953bf5a672acbc805bd35fb7fd60ee42548326 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Tue, 7 Oct 2025 11:30:58 +0200 Subject: [PATCH] Fix missing account numbers in journal table - Changed account_number to account_code in getLine8VATAccounts method - Changed account_number to account_code in getLine20Accounts method - Account numbers should now display correctly in the journal entry table - Fixes issue where account codes were showing as empty in the PDF --- core/class/declarationtva_pdf.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index a25643f..59faa7f 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -1879,7 +1879,7 @@ class DeclarationTVA_PDF foreach ($line8_details['account_details'] as $account) { if ($account['vat_amount'] > 0) { $entries[] = array( - 'account_code' => $account['account_number'], + 'account_code' => $account['account_code'], 'account_label' => $account['account_label'], 'entry_label' => 'TVA due - Ligne 08', 'debit' => $this->formatAmount($account['vat_amount']), @@ -1916,7 +1916,7 @@ class DeclarationTVA_PDF foreach ($line20_details['account_details'] as $account) { if ($account['vat_amount'] > 0) { $entries[] = array( - 'account_code' => $account['account_number'], + 'account_code' => $account['account_code'], 'account_label' => $account['account_label'], 'entry_label' => 'TVA déductible - Ligne 20', 'debit' => '',