Skip to content
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

Add a stub article that summarizes Solidus's built-in tax calculator #2526

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions guides/calculators/tax-calculator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Tax calculator

Solidus comes with a tax calculator that is used to calculate both sales tax
(United States-style taxes) and value-added tax (VAT):
[`Spree::Calculator::DefaultTax`][default-tax-calculator]. Typically, this
calculator should be the only tax calculator required by your store.

Using this calculator, all tax rates are represented as a decimal. So, a tax
rate of 5% should be represented as `0.05`.

Taxes can apply to line items, shipments, or an entire order.

The tax calculator uses its calculable – a `Spree::TaxRate` – to calculate tax
totals.

For more comprehensive documentation about taxes in Solidus, see the
[Taxation][taxation] documentation.

If your store's tax requirements are more complicated, you may want to create a
[custom tax calculator][custom-tax-calculator] or use an extension like
[`solidus_tax_cloud`][solidus-tax-cloud].

[custom-tax-calculator]: ../taxation/custom-tax-calculators.md
[default-tax-calculator]: https://github.com/solidusio/solidus/blob/master/core/app/models/spree/calculator/default_tax.rb
[solidus-tax-cloud]: https://github.com/solidusio-contrib/solidus_tax_cloud
[taxation]: ../taxation/overview.md