stdnum.lt.pvm

PVM (Pridėtinės vertės mokestis mokėtojo kodas, Lithuanian VAT number).

The PVM is used for VAT purposes in Lithuania. It is 9 digits (for legal entities) or 12 digits long (for temporarily registered taxpayers). This module does not check the format of Lithuanian personal codes (Asmens kodas).

>>> compact('LT 100001919017')
'100001919017'
>>> is_valid('119511515')  # organisation
True
>>> is_valid('100001919017')  # temporarily registered
True
>>> is_valid('100001919018')  # invalid check digit
False
>>> is_valid('100004801610')  # second step in check digit calculation
True
stdnum.lt.pvm.calc_check_digit(number)

Calculate the check digit. The number passed should not have the check digit included.

stdnum.lt.pvm.compact(number)

Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

stdnum.lt.pvm.is_valid(number)

Checks to see if the number provided is a valid VAT number. This checks the length, formatting and check digit.

Previous topic

stdnum.it.iva

Next topic

stdnum.lu.tva