| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
This also validates the county part of the number.
Closes https://github.com/arthurdejong/python-stdnum/pull/407
|
| |
|
|
|
|
|
|
|
|
| |
This does not strip the RO prefix from Romanian VAT numbers to be able
to keep the distinction between a CUI/CIF that is registered for VAT
(which commonly has the RO prefix) and those that don't.
Closes https://github.com/arthurdejong/python-stdnum/issues/231
|
| |
|
|
|
|
|
| |
This module separates the validation of numbers assigned to companies
(CUI or CIF) of those assigned to natural persons (CNP).
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/229
Closes https://github.com/arthurdejong/python-stdnum/pull/234
|
|
|
|
|
|
|
|
|
|
| |
This supports 7 or 8 as first digits in the CNP which are apparently
used to identify foreign residents.
This also changes the exception for an incorrect first digit from
InvalidFormat to InvalidComponent which is a little clearer.
Closes https://github.com/arthurdejong/python-stdnum/issues/230
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This ensures that formatting characters are also removed when formatted
numbers are passed to the get_birth_date() functions.
Closes https://github.com/arthurdejong/python-stdnum/issues/94
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-enable the flake8 test for unused imports by explicitly marking
imports for namespace purposes. This allows us to remove a few unused
imports.
A few more cleanups that allow us to reduce the number of ignored flake8
ignored tests. The remaining ignored tests are now documented.
Ignore a flake8 warning about print statements because we use print in
the update scripts.
|
| |
|
| |
|
|
|
|
| |
Makes the code slightly simpler and more compact.
|
| |
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@174 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
usable format
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
vat identifier
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@153 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@152 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
Romanian VAT number) module
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@123 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
Personal Code) module
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@122 9dea7c4f-944c-4273-ac1a-574ede026edc
|