| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
A natural RUC is the CI plus an establishment number. Both the natural
RUC and the public RUC can have a third digit with the value 6.
Closes https://github.com/arthurdejong/python-stdnum/issues/267
|
|
|
|
|
|
|
|
|
|
|
| |
The problem with the latter is that it will also accept all kinds of
unicode digits that are not the ASCII 0-9 digits causing all kinds of
problems in check digit calculations.
Some of these unicode characters are also considered digits by int() but
some are not (such as the SUPERSCRIPT TWO unicode character).
Closes https://github.com/arthurdejong/python-stdnum/issues/96
|
|
|
|
|
|
|
| |
Add the case of Cedulas and RUCs of foreigners in Ecuador, as
Venezuelans and Colombians
Closes https://github.com/arthurdejong/python-stdnum/pull/87
|
| |
|
|
|
|
| |
Makes the code slightly simpler and more compact.
|
|
|
|
|
| |
This raises exceptions when the provice or establishment number part of
the number contains invalid values.
|
|
|
|
|
|
| |
Use the CI checks from within the RUC module for natural RUC numbers
(thereby eliminating a bug in the RUC checksum calculation) and simplify
the checksum functions.
|
|
|
|
|
|
|
| |
This moves a number of the existing test cases to dedicated doctest
files and extend the tests with more numbers and corner cases.
This also fixes a few docstrings.
|
|
Add modules for Ecuadorian Identification Card (CI - Cédula de
identidad) and Fiscal Numbers (RUC - Registro Único de Contribuyentes)
|