iconfinder / pyvat

VAT validation for Python
Other
66 stars 29 forks source link

Bug: Austian VAT validation is wrong implemented #56

Open sowinski opened 2 years ago

sowinski commented 2 years ago

Hi,

pyvat.is_vat_number_format_valid("ATU76127777") => is True

pyvat.is_vat_number_format_valid("76127777", country_code="AT") => is False but should be also True

I could private a fix if the maintainer except that this is a bug.

Kompas commented 2 years ago

image The VAT id in your example is invalid according to EU VIES.

sowinski commented 1 year ago

Hi, this was just an example. I don't wanted to post a real ID from a real company. If you use a real company then you will see it is failing as described.

I just wrote a wrapper which is handling this edge case but would be nice if it would be fixed.