valeriansaliou/node-sales-tax

TN sales taxes

home-chef615 opened this issue · 3 comments

for getting value of the sales tax TN, the value is wrong,

this is the response i get

result is: {"type":"vat","rate":0.07,"currency":"USD","area":"national","exchange":"consumer","charge":{"direct":true,"reverse":false},"details":[{"type":"vat","rate":0.07}]}

this is the function getting the result

const result = await SalesTax.getSalesTax('US', 'TN');
the corrected value for tn is supposed to be 0.0925 not 0.07

The tax rate of Tennessee, as stored in the current VAT rates JSON is 7%: https://github.com/valeriansaliou/node-sales-tax/blob/master/res/sales_tax_rates.json#L1080 ; the value reported by the library is therefore "correct" as per the VAT data source.

I'm also reading this: https://www.tn.gov/revenue/taxes/sales-and-use-tax.html which states that the tax rate is 7%.

Could you clarify in which situation could it be 9.25%?

The module currently does not have details for local taxes. So for example, for TN, the state-wide rate is 7%, but then depending on where you are in TN, you have 0 to 2.75% local tax.

Ultimately, we may need to merge in US regional tax rates into this, for example Wise.com maintains this Google Doc with that info, someone want to take the plunge and add that capability?
https://docs.google.com/spreadsheets/d/1lFULk9vwvvUj9jCYdvpd4Ql_hGe654muMBiRpttfmP0/edit#gid=835600141

To follow-up on what I said: Nashville will be 9.25%, yet Spring Hill will be 9.75% overall tax (again with 7% to state and remaining to the county).