增值税税号验证
openerp-base-vat的Python项目详细描述
安装此模块后,在合作伙伴的VAT字段中输入的值将 对所有支持的国家进行验证。这个国家是根据 以增值税编号为前缀的两个字母的国家代码,例如BE0477472701 将使用比利时规则进行验证。
有两种不同级别的增值税税号验证:
- By default, a simple off-line check is performed using the known validation rules for the country, usually a simple check digit. This is quick and always available, but allows numbers that are perhaps not truly allocated, or not valid anymore.
- When the “VAT VIES Check” option is enabled (in the configuration of the user’s Company), VAT numbers will be instead submitted to the online EU VIES database, which will truly verify that the number is valid and currently allocated to a EU company. This is a little bit slower than the simple off-line check, requires an Internet connection, and may not be available all the time. If the service is not available or does not support the requested country (e.g. for non-EU countries), a simple check will be performed instead.
目前支持的国家包括欧盟国家和一些非欧盟国家 比如智利、哥伦比亚、墨西哥、挪威或俄罗斯。对于没有支持的国家, 仅验证国家代码