You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
I have a weird issue where the reader is completely ignoring the VAT of an invoice. I can confirm there is VAT because I can see everything is correct in the UBL, which is coming from the invoicing platform Accountable.
Since it's a widely used platform, I don't think there's anything wrong with the UBL.
On some invoices everything works correctly including the VAT, but on this one it doesn't: Factuur-2024_0004-1729775611734_UBL_21.txt
(I changed it from .xml to .txt to be able to upload it here)
Summary
I have a weird issue where the reader is completely ignoring the VAT of an invoice. I can confirm there is VAT because I can see everything is correct in the UBL, which is coming from the invoicing platform Accountable.
Since it's a widely used platform, I don't think there's anything wrong with the UBL.
On some invoices everything works correctly including the VAT, but on this one it doesn't:
Factuur-2024_0004-1729775611734_UBL_21.txt
(I changed it from .xml to .txt to be able to upload it here)
This is the code my code:
`$invoice = $reader->import(file_get_contents($file->getRealPath()));
$invoice->validate();
Log::debug('Totals', [
'taxExclusiveAmount' => $invoice->getTotals()->taxExclusiveAmount,
'taxInclusiveAmount' => $invoice->getTotals()->taxInclusiveAmount,
'vatAmount' => $invoice->getTotals()->vatAmount,
]);
Log::debug('Lines');
Log::debug($invoice->getLines());`
This is the ouput I get:
The total incl. VAT should be 1.210,00.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: