stdnum.sk.dph¶
IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number).
The IČ DPH (Identifikačné číslo pre daň z pridanej hodnoty) is a 10-digit number used for VAT purposes. It has a straightforward checksum.
>>> validate('SK 202 274 96 19')
'2022749619'
>>> validate('SK 202 274 96 18') # invalid check digits
Traceback (most recent call last):
...
InvalidChecksum: ...
- stdnum.sk.dph.checksum(number)¶
Calculate the checksum.
- stdnum.sk.dph.compact(number)¶
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
- stdnum.sk.dph.is_valid(number)¶
Check if the number is a valid VAT number.
- stdnum.sk.dph.validate(number)¶
Check if the number is a valid VAT number. This checks the length, formatting and check digit.