cart icon indicating copy to clipboard operation
cart copied to clipboard

Multiple tax entries.

Open X-Tender opened this issue 5 years ago • 3 comments

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).

image image

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 😄

X-Tender avatar Oct 20 '20 14:10 X-Tender

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?

lorddoumer avatar Mar 24 '21 16:03 lorddoumer

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 image

X-Tender avatar Mar 24 '21 17:03 X-Tender

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!

lorddoumer avatar Mar 24 '21 19:03 lorddoumer