arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
498 stars 206 forks source link

Issue with some Italian VAT codes (Partita IVA) #206

Closed LucaCappelletti94 closed 4 years ago

LucaCappelletti94 commented 4 years ago

Hello Arthur and first of all thank you for making this wonderful library!

I wanted to report you a few errors I encountered with the Italian VAT codes.

The following VAT codes fail:

But they are indeed valid as you can see from the sources.

I am very ignorant in the matter of VAT codes validation, I just wanted to let you know. For my own script, I'll simplify the validation to be a list of 11 numbers after an optional "IT".

Good luck!

arthurdejong commented 4 years ago

Hi @LucaCappelletti94 thanks for your report. Both numbers also fail the online VIES validation by the European Commision so I would assume that they are errors on the respective pages rather than a bug in python-stdnum.