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
This commit is contained in:
Frank Cools 2025-10-07 11:30:58 +02:00
parent 2debac1ef3
commit bc953bf5a6

View File

@ -1879,7 +1879,7 @@ class DeclarationTVA_PDF
foreach ($line8_details['account_details'] as $account) { foreach ($line8_details['account_details'] as $account) {
if ($account['vat_amount'] > 0) { if ($account['vat_amount'] > 0) {
$entries[] = array( $entries[] = array(
'account_code' => $account['account_number'], 'account_code' => $account['account_code'],
'account_label' => $account['account_label'], 'account_label' => $account['account_label'],
'entry_label' => 'TVA due - Ligne 08', 'entry_label' => 'TVA due - Ligne 08',
'debit' => $this->formatAmount($account['vat_amount']), 'debit' => $this->formatAmount($account['vat_amount']),
@ -1916,7 +1916,7 @@ class DeclarationTVA_PDF
foreach ($line20_details['account_details'] as $account) { foreach ($line20_details['account_details'] as $account) {
if ($account['vat_amount'] > 0) { if ($account['vat_amount'] > 0) {
$entries[] = array( $entries[] = array(
'account_code' => $account['account_number'], 'account_code' => $account['account_code'],
'account_label' => $account['account_label'], 'account_label' => $account['account_label'],
'entry_label' => 'TVA déductible - Ligne 20', 'entry_label' => 'TVA déductible - Ligne 20',
'debit' => '', 'debit' => '',