se-panfilov / jsvat

Check the validity of the format of an EU VAT number
http://se-panfilov.github.io/jsvat
MIT License
129 stars 33 forks source link

Italy VAT codes not valid #110

Open MiguelQueiroz opened 3 years ago

MiguelQueiroz commented 3 years ago

This Vat numbers are valid, but your validator and many others, report as invalid. Ex: MRTMTT25D09F205Z or PCTCHR77S66I470H

Check this: https://validarnif.pt/pt/validar-nif-italia/ (works fine)

michelem09 commented 3 years ago

Those aren't Italian VAT numbers but Italian personal tax code (called in Italian "Codice fiscale"). This lib checks only against VAT numbers (for companies) not personal tax code.

MiguelQueiroz commented 3 years ago

Ok strange, thought they were the same. Here in Portugal at least, Vat number and código fiscal are the same number and the same thing. It's the code you give in invoices to let tax authority to link the invoice to someone, and benefit from fiscal IRS

Efois commented 8 months ago

This Vat numbers are valid, but your validator and many others, report as invalid. Ex: MRTMTT25D09F205Z or PCTCHR77S66I470H

Check this: https://validarnif.pt/pt/validar-nif-italia/ (works fine)

There is a online tool from government to test the correctness of them