8000 Support both corporate and individual Israeli TINs for generic valida… · odony/python-stdnum@855fa75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 855fa75

Browse files
committed
Support both corporate and individual Israeli TINs for generic validation
According to the official references mentioned in arthurdejong#107, Israeli companies can use two types of Tax Identification Numbers / VAT codes: - Corporate Registration Numbers for corporations, as currently implemented by `stdnum.il.hp` - ID Card numbers for sole proprietorship businesses (individuals), as currently implemented by `stdnum.il.idnr` For example, the [TIN rules that were provided to OECD by the Israeli tax administration](https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Israel-TIN.pdf) state: > The "TIN" for an Individual is his ID number. Based on these references, it seems that the validation of a generic VAT number for Israel via `stdnum.il.vat` should allow both formats. Further, considering that `stdnum.il.idnr` is a simple luhn validation that will also work for the numbers that `stdnum.il.hp` currently verifies, this can be done by simply changin the default alias to point to it instead. The only difference between the two algorithms is that the `stdnum.il.hp` one verifies that the first digit is 5.
1 parent 201d4d1 commit 855fa75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdnum/il/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
"""Collection of Israeli numbers."""
2222

2323
# provide aliases
24-
from stdnum.il import hp as vat # noqa: F401
24+
from stdnum.il import idnr as vat # noqa: F401

0 commit comments

Comments
 (0)
0