stdnum.mt.vat

VAT (Maltese VAT number).

The Maltese VAT registration number contains 8 digits and uses a simple weigted checksum.

>>> compact('MT 1167-9112')
'11679112'
>>> is_valid('1167-9112')
True
>>> is_valid('1167-9113')  # invalid check digits
False
stdnum.mt.vat.checksum(number)

Calculate the checksum.

stdnum.mt.vat.compact(number)

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

stdnum.mt.vat.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.meid

Next topic

stdnum.nl.bsn