Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/ec/ruc.py
Commit message (Collapse)AuthorAgeFilesLines
* Validate parts of numbersArthur de Jong2014-10-171-0/+8
| | | | | This raises exceptions when the provice or establishment number part of the number contains invalid values.
* Refactor checksum functionsArthur de Jong2014-10-171-40/+17
| | | | | | 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.
* Use dedicated doctestsArthur de Jong2014-10-171-9/+3
| | | | | | | 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 Ecuadorian CI and RUC numbersJonathan Finlay2014-10-141-0/+114
Add modules for Ecuadorian Identification Card (CI - Cédula de identidad) and Fiscal Numbers (RUC - Registro Único de Contribuyentes)