silvershop-core
silvershop-core copied to clipboard
Globalised tax calculation
Tax should update automatically, according to country, and what items. Some countries calculations are more complex than others.
Store all tax rates in an array / file, allowing for updates to be made every new version of shop, or for developers to make updates. http://en.wikipedia.org/wiki/Tax_rates_around_the_world
Defining tax classes will allow specific products to be added to those classes, as some countries charge different tax rates for different types of products.
The region restriction system (#94) will help to define tax rates per region.
Class Structure
TaxClass
TaxRate extends RegionRate
TaxClass has many TaxRates.
Work has been started on this in https://github.com/burnbright/silverstripe-shop-taxframework
https://github.com/commerceguys/tax
@wilr Looks like a great library. I guess tax calculation should be left to a module, or what do you think?