Sylius: [BUG] DefaultCalculator - Tax calculator.

Created on 8 Nov 2016  Â·  5Comments  Â·  Source: Sylius/Sylius

This's should be bug. Why difference calculation between isIncludedInPrice and none isIncludedInPrice?

https://github.com/Sylius/Sylius/blob/master/src/Sylius/Component/Taxation/Calculator/DefaultCalculator.php#L28

Documentation Stale

Most helpful comment

Oh my mistake , sorry 🤗

All 5 comments

It is not a bug. See the examples:

Tax included in price:

Given the store has included in price "VAT" tax rate of 23%
And the store has a product "T-Shirt" priced at "$10.00"
When I add product "T-Shirt" to my cart
Then my cart total should be "$10.00"
And my cart taxes should be "$1.87"

Tax excluded from price:

Given the store has excluded from price "VAT" tax rate of 23%
And the store has a product "T-Shirt" priced at "$10.00"
When I add product "T-Shirt" to my cart
Then my cart total should be "$12.30"
And my cart taxes should be "$2.30"

@TheMadeleine it's not the first question about that, I think we need to put these examples in the docs.

Oh my mistake , sorry 🤗

@michalmarcinkowski I have a question, in front-end how i know that this product contains included or not included in price vat?

In the end how i can display user friendly tax label in my store?

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikemix picture mikemix  Â·  3Comments

igormukhingmailcom picture igormukhingmailcom  Â·  3Comments

eb22fbb4 picture eb22fbb4  Â·  3Comments

inssein picture inssein  Â·  3Comments

foxou33 picture foxou33  Â·  3Comments