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
484 stars 203 forks source link

DO ncf check_dgii returning None. #430

Open ctactuk opened 3 months ago

ctactuk commented 3 months ago

import stdnum.do.ncf as ncf

ncf.check_dgii(ncf_number, rnc_number)

the method check_dgii always returning None.

arthurdejong commented 3 months ago

The tests still work:

>>> import stdnum.do.ncf as ncf
>>> ncf.check_dgii('130546312', 'A010010011500000038')
{'validation_message': 'El NCF digitado es válido.', 'rnc': '130546312', 'name': 'PROMO NATIONAL SRL', 'type': 'COMPROBANTE GUBERNAMENTAL', 'ncf': 'A010010011500000038', 'status': 'VENCIDO', 'valid_until': '30/04/2018'}