commerce_tax_wa
Module information
This module calculates Washington State Sales Tax for the Commerce 2.0 module. Washington State has destination-based sales tax, meaning the seller has to charge sales tax based on the location the product is delivered to, rather than based on the location of the store/business. Thus, the tax rate is variable, and because there are literally hundreds of possible destination rates a simple sales tax setup in Commerce will not work for Washington.
In this module, Tax is calculated based on the purchaser's shipping address (or billing address, for non-shippable purchases), and the tax rate is found via address lookup on the Washington State Department of Revenue's web site, so that it always uses the most recent tax rate information.
This module is inspired/copied from the uc_tax_wa module by jhodgdon.
It currently provides a tax resolver and a tax type. The tax type supports designating particular product variations to apply the tax to, allowing you to have taxable and non-taxable product variations. It also supports only being used in particular stores.
Installation and Configuration
After installing this module in the normal way, go to Commerce -> Configuration -> Store -> Tax Types, and click "Add tax type". Select "Washington State tax service", and enter your default location and tax rate -- this rate only gets used if the Department of Revenue's web service is down or returns an error. Select the taxable product variations and the store(s) to apply taxes, and save.
Users will be taxed for any taxable products if their billing address is in Washington State.
The plugin currently stores the location code and location name in the database -- there is not currently a way to report taxes by location, but this will be added soon.
Version info
- 8.x-1.x versions are for Drupal Commerce up to 8.x-2.7.
- 8.x-2.x versions are for Drupal Commerce 8.x-2.8 and up.
For a Drupal 7/Commerce 1 tax service, there is a sandbox project.