driesvints / vat-calculator

Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be.
MIT License
1.2k stars 88 forks source link

Getting all VAT rates for a country #175

Closed DonCamillo11 closed 2 months ago

DonCamillo11 commented 2 months ago

Is there any way to get all VAT rates defined for a country? I dont understand why just one rate is defined as a standard rate. I need to get a list of all valid VAT rates for a country e.g. Germany with 7% and 19% to let the user choose one of these rates.

driesvints commented 2 months ago

There isn't such a thing but I would accept a PR to get a list of all types of vat rates for a country. Maybe with the following API: VatCalculator::getTaxRatesForCountry('DE') (returns all rates values for DE).