You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
The reference displayed when entering a non valid VAT number for Israel is incorrect. And the check used is not the right one.
Steps to reproduce:
- In app Contact, create a new one
- Select Israel as country and enter a non valid VAT number
- The default ref is displayed: 'CC##' (CC=Country Code, ##=VAT Number)
- And the number 039225313 should be accepted
Cause:
The check used by the library stdnum is not up to date.
There is a PR to modify the library stdnum: https://github.com/arthurdejong/python-stdnum/ PR436 as the law has changed. Before only corporations could have a VAT number, now individuals can also have one.
The new regulations give different formats for comanies and individuals.
Solution:
Use the right check (tdnum.il.idnr) for individuals, which is available in the library stdnum.
opw-395467
0 commit comments