Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/ro
Commit message (Collapse)AuthorAgeFilesLines
* Ensure EU VAT numbers don't accept duplicate country codesArthur de Jong2023-11-121-2/+2
|
* Add get_county() function to Romanian CNPRaduBorzea2023-04-021-1/+71
| | | | | | This also validates the county part of the number. Closes https://github.com/arthurdejong/python-stdnum/pull/407
* Use str.zfill() for padding leading zerosArthur de Jong2022-08-151-1/+1
|
* Retain RO prefix in Romanian VAT numbersArthur de Jong2020-11-011-9/+9
| | | | | | | | 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
* Minor updatesArthur de Jong2020-11-012-2/+3
|
* Add Romanian CUI/CIF numberArthur de Jong2020-11-012-20/+95
| | | | | This module separates the validation of numbers assigned to companies (CUI or CIF) of those assigned to natural persons (CNP).
* Add Romanian Trade Register identifierArthur de Jong2020-08-021-0/+99
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/229 Closes https://github.com/arthurdejong/python-stdnum/pull/234
* Support foreign residents for Romanian CNPArthur de Jong2020-08-021-7/+13
| | | | | | | | | | 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
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-292-4/+4
| | | | | | | | | | | 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
* Call compact in get_birth_date() functionsArthur de Jong2019-01-291-1/+2
| | | | | | | 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
* Update the flake8 ignore listArthur de Jong2018-02-141-1/+1
| | | | | | | | | | | | 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.
* Minor code improvements (mostly PEP8)Arthur de Jong2017-09-111-1/+1
|
* Docstring improvementsArthur de Jong2017-09-112-8/+6
|
* Use zip() instead of enumerate()Arthur de Jong2015-10-052-4/+4
| | | | Makes the code slightly simpler and more compact.
* Implement validate() for Romanian numbersArthur de Jong2013-06-082-42/+65
|
* re-add Python3 supportArthur de Jong2012-02-261-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@174 9dea7c4f-944c-4273-ac1a-574ede026edc
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-262-7/+5
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* for all countries, provide vat as an alias for the local ↵Arthur de Jong2012-02-191-0/+3
| | | | | | vat identifier git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@153 9dea7c4f-944c-4273-ac1a-574ede026edc
* give all packages a descriptionArthur de Jong2012-02-191-0/+21
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@152 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a CF (Cod de înregistrare în scopuri de TVA, ↵Arthur de Jong2012-02-121-0/+72
| | | | | | Romanian VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@123 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a CNP (Cod Numeric Personal, Romanian Numerical ↵Arthur de Jong2012-02-122-0/+89
Personal Code) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@122 9dea7c4f-944c-4273-ac1a-574ede026edc