arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
498 stars 206 forks source link

Add support for Morocco TIN #226

Closed unho closed 2 years ago

unho commented 4 years ago

Search:

Examples (ICE):

arthurdejong commented 2 years ago

The check digit algorithm seems to be based on ISO 7064 Mod 97,10 but normally the checksum value for valid numbers is expected to be 1 while in this case all the provided test numbers have a checksum value of 0.