Replies: 1 comment 1 reply
-
|
Tax always depends on how you calculate it. There are several different valid ways of doing it. Can you give me a concrete example of what you expect to get and what CoreShop calculates? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I've been having some issues regarding tax calculations in carts.
The prices in our shop are set up to already include taxes.
Example 1:
When I put an Item in my cart that costs 186€, use a quantity of 2, with a tax rate of 19%, and no shipping, Coreshop calulates a tax of 59.40€.
According to what I gathered from
getTaxesAmountFromGrossAsArrayinCoreShop\src\CoreShop\Component\Taxation\Calculator\TaxRulesTaxCalculator.phpthe way CoreShop calculates the tax in this case istax = gross - net
tax = 372 - (372 / (1 + (19 / 100))) = 59.3949€, which when rounded would be 59.39€ instead of 59.40€, if I'm not mistaken.
Example 2:
However, if I have an item, which costs 183.50€, with quantitiy of 2, same tax rate 19%, but shipping of 5€ Coreshop calculates a tax of 59.39€, even though this equals to the same gross price = 183.50€ * 2 + 5€ = 372€
Can you reproduce this? Any help is appreciated.
Disclosure: I don't have much experience in accounting, so I might be wrong somewhere.
I've also seen #1849 , which may be related.
Beta Was this translation helpful? Give feedback.
All reactions