-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taxation documentation #2403
Taxation documentation #2403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a big improvement over the last taxation guide. However, I find a few inaccuracies still.
calculator can be changed if you need to develop a more specialized tax | ||
calculator for your application. | ||
|
||
The `Spree::TaxRate` module includes the `Spree::Calculator` that calculates the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a Ruby level, this is quite incorrect. The Spree::TaxRate
model is a class, not a module, and the Spree::Calculator
is an entire group of classes that has to do with tax rates, but also with other things. A developer reading this sentence assuming the person who wrote knows Ruby well will likely be very confused.
What about this:
Every `Spree::TaxRate` you create will be connected to a `Spree::Calculator`
instance that calculates the correct tax amount for a given shipment or line item.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this (and your continued patience as I figure this stuff out). 👍
guides/taxation/displaying-prices.md
Outdated
Solidus can then proceed to calculate the correct consumer prices for each | ||
country with `included_in_price` VAT rates. It also generates a fallback | ||
"export" price, where the price's `country_iso` is `nil`. New products will | ||
behave as if that checkbox were selected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that checkbox
I believe refers to Rebuild VAT prices
, correct? Maybe spell it out, we're two sentences away from the last checkbox, and I think included_in_price
can also be displayed as a checkbox.
guides/taxation/displaying-prices.md
Outdated
always uses the most recently updated price. | ||
|
||
<!-- TODO: | ||
Let's check to see whether there are alternative/automated ways to rebuild VAT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, there isn't any such thing. :)
guides/taxation/displaying-prices.md
Outdated
### Multiple storefronts | ||
|
||
Administrators can configure each storefront's "Default currency" and "Tax | ||
Country for Empty Carts" values from the **Settings -> Store** page in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Tax Country for Empty Carts
is the same as cart_tax_country_iso
, and here it sounds like they are two different things. I suggest merging this with the previous section?
guides/taxation/displaying-prices.md
Outdated
Country for Empty Carts" values from the **Settings -> Store** page in the | ||
`solidus_backend` admin. | ||
|
||
You can customize Solidus's pricing behaviour by creating a custom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe reiterate that VAT and pricing are intricately connected, which is why you're making this point here.
guides/taxation/value-added-tax.md
Outdated
# Value-added tax (VAT) | ||
|
||
Many countries have what is referred to as a value-added tax (VAT). In these | ||
cases, the tax is typically included in the price of each item. This means that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not "typically" included, it's just always included.
guides/taxation/value-added-tax.md
Outdated
|
||
Many countries have what is referred to as a value-added tax (VAT). In these | ||
cases, the tax is typically included in the price of each item. This means that | ||
no additional tax needs to be applied during checkout. However, many tax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much all jurisdictions do that.
|
||
## Example order with multiple VAT rates | ||
|
||
In the following example, we will still refer to VAT as "adjustments", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence sounds like you shudder lightly at the implementation. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just initially confused, since VAT would never "adjust" the price. Wanted to make sure it was clear for everyone!
guides/taxation/value-added-tax.md
Outdated
``` | ||
£17.99 – 1 x T-shirt | ||
£19.99 – 1 x T-shirt | ||
£1.81 – Clothing tax (5%) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that a tab? Should it be a table instead?
guides/taxation/value-added-tax.md
Outdated
£19.99 – 1 x T-shirt | ||
£16.99 – 1 x Power adapter | ||
£1.81 – Clothing tax (5%) | ||
£1.54 – Consumer electronics tax (10%) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh-oh, the indentation is off here. Otherwise I really like the receipts as visualizers of what's happening.
e02fc8c
to
8f05933
Compare
@mamhoff I've fixed the outstanding issues per your review. 👍 Please re-review when you get the chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I’ve rewritten and expanded the taxation guide. For this PR, I’ve made these changes:
There is more work to be done with taxation documentation, but I think this is an improvement over what we had before. In future PRs, I’d like to see the following changes:
This is part a larger project to improve Solidus's documentation. See this gist with the high-level table of contents. Where and how this documentation will exist is still up for discussion.