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);
|
$line20_entries = $this->getLine20Accounts($declaration, $ca3_lookup);
|
||||||
$entries = array_merge($entries, $line20_entries);
|
$entries = array_merge($entries, $line20_entries);
|
||||||
|
|
||||||
// Add VAT result on account 4456700
|
// VAT result is now handled in getBalancingEntries method
|
||||||
$vat_result_entry = $this->getVATResultEntry($declaration, $ca3_lookup);
|
|
||||||
if ($vat_result_entry) {
|
|
||||||
$entries[] = $vat_result_entry;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add rounding difference
|
// Rounding difference is now handled in getBalancingEntries method
|
||||||
$rounding_entry = $this->getRoundingEntry($declaration, $ca3_lookup);
|
|
||||||
if ($rounding_entry) {
|
|
||||||
$entries[] = $rounding_entry;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add balancing entry to ensure debits equal credits
|
// Add balancing entry to ensure debits equal credits
|
||||||
$balancing_entries = $this->getBalancingEntries($declaration, $entries);
|
$balancing_entries = $this->getBalancingEntries($declaration, $entries);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user