Closed Dagobert87 closed 5 months ago
Hi @Dagobert87
I think, that you have to call the addDocumentTax
with correct values. :-) It seems to me, that the third parameter (basisAmount) should be equal to 1. You have to sum all line total amounts for each VAT category and VAT type...
If I start from your example and assume that you have only assigned this one position to the document, then you should (in my opinion) pass the third parameter with 1.0 (BasisAmount):
->addDocumentTax("E", "VAT", 1.0, 0.0, 0.0, '[reason]', 'VATEX-EU-132-1B')
Hello, yes, it was a test, with only 1 position. To find the error, which was somewhere else ^^. I probably misunderstood the Wiki, now it works fine. Thank you very much, for the quick help. Dagobert
Hello, yes, it was a test, with only 1 position. To find the error, which was somewhere else ^^. I probably misunderstood the Wiki, now it works fine. Thank you very much, for the quick help. Dagobert
Can you please briefly explain what you did or misunderstood? Perhaps other users will also benefit from this. Perhaps I can also adapt my wiki to make it even easier to understand.
Hello, If you want to describe it in more detail on the wiki, I would break it down a bit:
addDocumentTax([Tax Category], [Tax Type], [Sum Netto], [Sum Tax], [Tax value]);
under there, then the points [Sum Netto], [Sum Tax], [Tax value] describe briefly in 2-3 sentences. like you did it with [Tax Category] and [Tax Type] The point about [Sum Netto] was my mistake. For example, you could mention that this value must be > 0 and must also correspond to the sum of the positions for categories E, O...
Hope that will help you.
Hello together,
I'm not sure if it's a feature, bug, or question. So I will explain ist
I create invoices with 0.00 tax 'Code E'. when I type the following:
When I now validate this with an online tool, I get this error message:
Where is my mistake in thinking? What did I do wrong? Can someone help me, please?
Sorry my english is not good, I tried to translate it with google ;)
Thanks a lot Dagobert