diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index bf1da1e..17f46a4 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -1857,9 +1857,11 @@ class DeclarationTVA_PDF $line20_entries = $this->getLine20Accounts($declaration, $ca3_lookup); $entries = array_merge($entries, $line20_entries); - // VAT result is now handled in getBalancingEntries method - - // Rounding difference is now handled in getBalancingEntries method + // Add VAT result on account 4455100 (changed from 4456700) + $vat_result_entry = $this->getVATResultEntry($declaration, $ca3_lookup); + if ($vat_result_entry) { + $entries[] = $vat_result_entry; + } // Add balancing entry to ensure debits equal credits $balancing_entries = $this->getBalancingEntries($declaration, $entries); @@ -1970,8 +1972,8 @@ class DeclarationTVA_PDF } $entry = array( - 'account_code' => '4456700', - 'account_label' => 'TVA à payer', + 'account_code' => '4455100', + 'account_label' => $this->getAccountLabel('4455100'), 'entry_label' => $declaration->declaration_name, 'debit' => '', 'credit' => ''