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

I believe there is a problem with Business Country Code set to UK #60

Closed FlaviuRadulescu closed 3 years ago

FlaviuRadulescu commented 6 years ago

--- update: I just figured out that I should use GB instead of UK, so there is no BUG. You can delete my bug report. ----

Hello, I believe there is a bug in the way the vat calculator handle the VAT in UK.

if I set the BusinessCountryCode to UK and try to calculate the tax/gross price for an individual in UK I get TAX 0 which is wrong as all the business in UK should charge the 19% to all the invoices to individuals. $vatCalculator = new Mpociot\VatCalculator\VatCalculator(); $vatCalculator->setBusinessCountryCode('UK'); //$countryCode = $vatCalculator->getIPBasedCountry(); $grossPrice = $vatCalculator->calculate( 10, 'UK' ); $taxRate = $vatCalculator->getTaxRate();

The result is that taxRate is 0.

I am doing something wrong or there is a real bug?

Thank you,

Flaviu

nasyrov commented 4 years ago

@FlaviuRadulescu, the correct country code is GB