cart
cart copied to clipboard
Multiple tax entries.
I stumbled uppon a tax issue which I can't explain myself where two tax entries with the same taxClass are created but with different tax values.
Current Behavior When I submit an order the orderItem have just one tax in it. Also in the PDF invoice which is generated via cart_pdf is only one Tax listed. When I try to get an order via findOneByOrderNumber on the itemRepository and look at the recieved data. Then I notice two tax entries in it (in tax and totalTax).

The second one is the correct tax. Both have the same class but the value is different. I ask myself, where did the 2. (wrong one) comes from. Also when I regenerate the invoice pdf via the backend function it lists both taxes.
Expected behavior/output Output the one and only correct tax
Environment
- TYPO3 version(s): 9.5.21 (One language)
- cart version: 6.9.2
- cart_payone version: 2.0.1
- Is your TYPO3 installation set up with Composer (Composer Mode): yes
- OS: OSX 10.15.7
Additional context I also hold a monologe on slack about the issue today 😄
Same problem here with cart 6.11.0 and cart_pdf 4.1.0 - strangely the exact same configuration doesn't produce this error in another instance. @X-Tender did you manage to solve this issue?
I 'solved' the issue by picking the last tax entry and praying that it always is the correct one.
Its in this Template:
/InvoicePdf/Order/Footer.html

Was thinking about the same solution, but was hoping there would be a cleaner way, haha. But if you had done the same it seems to be working so far? Thanks!