Remove duplicate VAT result and rounding entries
- Removed getVATResultEntry call (was creating 4456700) - Removed getRoundingEntry call (was creating duplicate entries) - All balancing now handled in getBalancingEntries method - Should now show only 4455100 with TD amount, no 4456700
This commit is contained in:
parent
ff6350890a
commit
e225a0c35c
@ -1857,17 +1857,9 @@ class DeclarationTVA_PDF
|
||||
$line20_entries = $this->getLine20Accounts($declaration, $ca3_lookup);
|
||||
$entries = array_merge($entries, $line20_entries);
|
||||
|
||||
// Add VAT result on account 4456700
|
||||
$vat_result_entry = $this->getVATResultEntry($declaration, $ca3_lookup);
|
||||
if ($vat_result_entry) {
|
||||
$entries[] = $vat_result_entry;
|
||||
}
|
||||
// VAT result is now handled in getBalancingEntries method
|
||||
|
||||
// Add rounding difference
|
||||
$rounding_entry = $this->getRoundingEntry($declaration, $ca3_lookup);
|
||||
if ($rounding_entry) {
|
||||
$entries[] = $rounding_entry;
|
||||
}
|
||||
// Rounding difference is now handled in getBalancingEntries method
|
||||
|
||||
// Add balancing entry to ensure debits equal credits
|
||||
$balancing_entries = $this->getBalancingEntries($declaration, $entries);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user