Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
FlaviuRadulescu opened this issue Apr 8, 2018 · 1 comment
Closed

Comments

@FlaviuRadulescu
Copy link

FlaviuRadulescu commented Apr 8, 2018

--- 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
Copy link

nasyrov commented Jun 1, 2020

@FlaviuRadulescu, the correct country code is GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants