valeriansaliou / node-sales-tax

:moneybag: International sales tax calculator for Node (offline, but provides optional online VAT number fraud check). Tax rates are kept up-to-date.
https://www.npmjs.com/package/sales-tax
MIT License
299 stars 45 forks source link

Introduce tax categories #13

Open erasmus opened 5 years ago

erasmus commented 5 years ago

I appreciate that you reduce the complexity of international tax by assuming services as the standard GST/VAT category, but it would be great to include the additional rates from the EY overview in the JSON and allow for querying those too for a more flexible lookup.

Is this something you've considered?

valeriansaliou commented 5 years ago

Just to confirm: you'd like to be able to get reduced VAT rates from node-sales-tax, is that right?

erasmus commented 5 years ago

Yes

valeriansaliou commented 5 years ago

Gotcha. Not planned on my end (as I have no use for such a feature), but I'm definitely open to PRs on this (should not be too long to implement!).

valeriansaliou commented 5 years ago

(keeping this open)

valeriansaliou commented 4 years ago

Tax rate details are now being returned, aside of the total tax rate used. In states where the federal and local tax rates are being used, this will return both separate taxes, with their type (eg. HST, GST, etc.): https://github.com/valeriansaliou/node-sales-tax/blob/master/CHANGELOG.md#220-2020-06-12

Does this address your issue?