Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Totals and lines not including VAT #64

Open
NicholasMartens opened this issue Nov 1, 2024 · 0 comments
Open

Totals and lines not including VAT #64

NicholasMartens opened this issue Nov 1, 2024 · 0 comments

Comments

@NicholasMartens
Copy link

NicholasMartens commented Nov 1, 2024

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:

image

The total incl. VAT should be 1.210,00.

Any help would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant