From b982e41d04c0b4587841184fe3fbaffdf013aaa7 Mon Sep 17 00:00:00 2001 From: Erik Seyti Date: Wed, 22 Apr 2020 15:10:15 -0300 Subject: [PATCH 1/3] [fix] Adicionado atributo cbenef a Classe NotaFiscalProduto --- pynfe/entidades/notafiscal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pynfe/entidades/notafiscal.py b/pynfe/entidades/notafiscal.py index 82ad525..0036160 100644 --- a/pynfe/entidades/notafiscal.py +++ b/pynfe/entidades/notafiscal.py @@ -550,6 +550,9 @@ class NotaFiscalProduto(Entidade): # - Unidade Tributavel (obrigatorio) unidade_tributavel = str() + # - cBenef + cbenef = str() + # - Quantidade Tributavel (obrigatorio) quantidade_tributavel = Decimal() From 249d6183a552ee7d64f203c682038ff075e084d2 Mon Sep 17 00:00:00 2001 From: leotada Date: Fri, 12 Jun 2020 12:44:16 -0300 Subject: [PATCH 2/3] =?UTF-8?q?Altera=20instala=C3=A7=C3=A3o=20dos=20requi?= =?UTF-8?q?rements=20e=20corrige=20para=20pip=2020.1.x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 13d22d3..4a8f870 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,5 @@ #!/usr/bin/env python import setuptools -try: # for pip >= 10 - from pip._internal.req import parse_requirements as parse -except ImportError: # for pip <= 9.0.3 - from pip.req import parse_requirements as parse - -requirements = lambda f: [str(i.req) for i in parse(f, session=False)] setuptools.setup( name='PyNFe', @@ -17,7 +11,12 @@ setuptools.setup( package_data={ 'pynfe': ['data/**/*.txt'], }, - install_requires=requirements('requirements.txt'), + install_requires=[ + 'pyopenssl', + 'requests', + 'lxml', + 'signxml', + ], zip_safe=False, python_requires='>=3.6', ) From 170ca7fd23e7803795c2a61a7343493f892c12ef Mon Sep 17 00:00:00 2001 From: leotada Date: Mon, 24 Aug 2020 22:19:02 -0300 Subject: [PATCH 3/3] [Fix] Corrige URL de consulta de nota em MG --- pynfe/utils/webservices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynfe/utils/webservices.py b/pynfe/utils/webservices.py index 49c6029..783b940 100644 --- a/pynfe/utils/webservices.py +++ b/pynfe/utils/webservices.py @@ -352,7 +352,7 @@ NFE = { 'STATUS': 'nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4', 'AUTORIZACAO': 'nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4', 'RECIBO': 'nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4', - 'CHAVE': 'nfe.fazenda.mg.gov.br/nfe2/services/NFeConsulta4', + 'CHAVE': 'nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4', 'INUTILIZACAO': 'nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4', 'EVENTOS': 'nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4', 'CADASTRO': 'nfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2',