Jump to content

Another taxes problem - European VAT number VIES validation


Recommended Posts

At first I want to say Hello to everyone, it's my first post on this forum.

 

I'm working on a shop for a client from the UK, which sells mainly for Polish customers.

 

Here's a quick summary of the tax situation between this two countries:
(It was described many times ago on other topics)
 
Now let's take a look at below scenarios:
1. Private client from Poland without company status -> doesn't have to enter NIP on registration, tax rate is 23% (VAT in Poland).
2. The customer from Poland with company status, who has valid EU VAT -> he shoud be available to take order with  tax rate 0%.
3. The customer from Poland with company status, without valid EU VAT -> tax rate is 23%
 
I've read that I have to use European VAT Number module and it's doing good work for first and second situation.
 
But in third case when customer have a legal company, but haven't got valid EU VAT -  it's making me a headache...
Customer is trying to register: he enter all required data incl. company name and VAT number (NIP), he press submit button and he get an error:
Invalid VAT number

 

 

It seems like VIES validation service is disabling registration possibility for customer with "invalid" VAT numbers.

 

Is there any possibility to skip this error, let customer to register in shop "as it is", and set him tax rate 23%? It would be nice to treat him the same way like private client, but don't know how to set it.

 

What I was trying to do:

I covered that if someone fill "company" field but leave blank "NIP" (vat number) - register form is not displaying any errors and let user to register and assign him tax rate 23% - thats good, but I still need his VAT number - even if it's invalid in VIES.

So, in Localization->Countries->Poland - I enabled an additional DNI field in address form. Then i have hidden DNI field by css, and made simple javascript code which have to:

- copy "vat_number" field value to hidden "DNI"

- clear "vat_number" field value before form submit to make some kind of hack on European VAT Number validation service.

I already did it, form passed without errors but (I don't know why) tax rate become 0% ... so finally i reinstaled module and started from scratch.

I get the impression like there is something on higher level that is messing up the whole thing.

 

Have you got any advices how to deal with that problem? Or maybe there is another simply way to achieve this functionality?

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...