stdnum.no.mva¶
MVA (Merverdiavgift, Norwegian VAT number).
The VAT number is the standard Norwegian organisation number (Organisasjonsnummer) with ‘MVA’ as suffix.
>>> validate('NO 995 525 828 MVA')
'995525828MVA'
>>> validate('NO 995 525 829 MVA')
Traceback (most recent call last):
...
InvalidChecksum: ...
>>> format('995525828MVA')
'NO 995 525 828 MVA'
- stdnum.no.mva.compact(number)¶
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
- stdnum.no.mva.format(number)¶
Reformat the number to the standard presentation format.
- stdnum.no.mva.is_valid(number)¶
Check if the number is a valid MVA number.
- stdnum.no.mva.validate(number)¶
Check if the number is a valid MVA number. This checks the length, formatting and check digit.