driesvints/vat-calculator

Getting all VAT rates for a country

Closed this issue · 2 comments

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.

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).

#182 Please check this PR