se-panfilov / jsvat

Check the validity of the format of an EU VAT number

Home Page:http://se-panfilov.github.io/jsvat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CZ: Individuals type 2

Steefanieee opened this issue · comments

Hi,

When I use this library to validate the Czech VAT number "CZ699000899", is returns false, yet when I use the site of VIES (http://ec.europa.eu/taxation_customs/vies/) it says that the VAT number is valid.
Maybe the validation rules changed of perhaps there is an error in the validation? According to the code this should be a Czech Individuals type 2 number.

Kind regards

@Steefanieee Hm, that might happen. If you would know any info about that change -please let me know. I'll try to check it

I found another library, sharing the same name, that implements this check properly: https://www.braemoor.co.uk/software/vat.shtml