From 8b54bfa081e62afeae2a651648b109b44832085d Mon Sep 17 00:00:00 2001 From: marinaGD <36993009+marinaGD@users.noreply.github.com> Date: Thu, 8 Nov 2018 11:26:54 -0200 Subject: [PATCH 1/2] =?UTF-8?q?[IMP]=20Habilita=20enviar=20apenas=20o=20CP?= =?UTF-8?q?F=20no=20destinat=C3=A1rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytrustnfe/nfe/templates/NfeAutorizacao.xml | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index b91c5e8..15e6dbb 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -116,6 +116,7 @@ {% endif %} {% endif %} {{ dest.xNome|normalize|escape }} + {% if dest.enderDest is defined %} {{ dest.enderDest.xLgr|normalize|escape }} {{ dest.enderDest.nro }} @@ -129,6 +130,7 @@ {{ dest.enderDest.xPais }} {{ dest.enderDest.fone }} + {% endif %} {{ dest.indIEDest }} {% if dest.IE != '' -%}{{ dest.IE }}{% endif %} {{ dest.ISUF }} diff --git a/setup.py b/setup.py index a56e340..8bb9ce5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -VERSION = "1.0.20" +VERSION = "1.0.21" setup( From b645b8ba78a45f54d9edd3b41ddb42d0535c2b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Luna?= Date: Thu, 8 Nov 2018 11:42:25 -0200 Subject: [PATCH 2/2] Inclui Webservices para NFC-e do Mato Grosso do Sul. (#195) --- pytrustnfe/Servidores.py | 62 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 18 deletions(-) diff --git a/pytrustnfe/Servidores.py b/pytrustnfe/Servidores.py index 14cdb37..8883f05 100644 --- a/pytrustnfe/Servidores.py +++ b/pytrustnfe/Servidores.py @@ -385,25 +385,51 @@ UFMT = { } UFMS = { - AMBIENTE_PRODUCAO: { - 'servidor': 'nfe.sefaz.ms.gov.br', - WS_NFE_INUTILIZACAO: 'ws/NFeInutilizacao4?wsdl', - WS_NFE_CONSULTA: 'ws/NFeConsultaProtocolo4?wsdl', - WS_NFE_SITUACAO: 'ws/NFeStatusServico4?wsdl', - WS_NFE_RECEPCAO_EVENTO: 'ws/NFeRecepcaoEvento4?wsdl', - WS_NFE_AUTORIZACAO: 'ws/NFeAutorizacao4?wsdl', - WS_NFE_RET_AUTORIZACAO: 'ws/NFeRetAutorizacao4?wsdl', - WS_NFE_CADASTRO: 'ws/CadConsultaCadastro4?wsdl', + NFE_MODELO: { + AMBIENTE_PRODUCAO: { + 'servidor': 'nfe.sefaz.ms.gov.br', + WS_NFE_INUTILIZACAO: 'ws/NFeInutilizacao4?wsdl', + WS_NFE_CONSULTA: 'ws/NFeConsultaProtocolo4?wsdl', + WS_NFE_SITUACAO: 'ws/NFeStatusServico4?wsdl', + WS_NFE_RECEPCAO_EVENTO: 'ws/NFeRecepcaoEvento4?wsdl', + WS_NFE_AUTORIZACAO: 'ws/NFeAutorizacao4?wsdl', + WS_NFE_RET_AUTORIZACAO: 'ws/NFeRetAutorizacao4?wsdl', + WS_NFE_CADASTRO: 'ws/CadConsultaCadastro4?wsdl', + }, + AMBIENTE_HOMOLOGACAO: { + 'servidor': 'hom.nfe.sefaz.ms.gov.br', + WS_NFE_INUTILIZACAO: 'ws/NFeInutilizacao4?wsdl', + WS_NFE_CONSULTA: 'ws/NFeConsultaProtocolo4?wsdl', + WS_NFE_SITUACAO: 'ws/NFeStatusServico4?wsdl', + WS_NFE_RECEPCAO_EVENTO: 'ws/NFeRecepcaoEvento4?wsdl', + WS_NFE_AUTORIZACAO: 'ws/NFeAutorizacao4?wsdl', + WS_NFE_RET_AUTORIZACAO: 'ws/NFeRetAutorizacao4?wsdl', + WS_NFE_CADASTRO: 'ws/CadConsultaCadastro4?wsdl', + } }, - AMBIENTE_HOMOLOGACAO: { - 'servidor': 'hom.nfe.sefaz.ms.gov.br', - WS_NFE_INUTILIZACAO: 'ws/NFeInutilizacao4?wsdl', - WS_NFE_CONSULTA: 'ws/NFeConsultaProtocolo4?wsdl', - WS_NFE_SITUACAO: 'ws/NFeStatusServico4?wsdl', - WS_NFE_RECEPCAO_EVENTO: 'ws/NFeRecepcaoEvento4?wsdl', - WS_NFE_AUTORIZACAO: 'ws/NFeAutorizacao4?wsdl', - WS_NFE_RET_AUTORIZACAO: 'ws/NFeRetAutorizacao4?wsdl', - WS_NFE_CADASTRO: 'ws/CadConsultaCadastro4?wsdl', + NFCE_MODELO: { + AMBIENTE_PRODUCAO: { + 'servidor': 'nfce.sefaz.ms.gov.br', + WS_NFE_RECEPCAO_EVENTO: 'ws/NFeRecepcaoEvento4', + WS_NFE_AUTORIZACAO: 'ws/NFeAutorizacao4', + WS_NFE_RET_AUTORIZACAO: 'ws/NFeRetAutorizacao4', + WS_NFE_CADASTRO: 'CadConsultaCadastro4', + WS_NFE_INUTILIZACAO: 'ws/NFeInutilizacao4', + WS_NFE_CONSULTA: 'ws/NFeConsultaProtocolo4', + WS_NFE_SITUACAO: 'ws/NFeStatusServico4', + WS_NFCE_QR_CODE: 'www.dfe.ms.gov.br/nfce/qrcode?', + }, + AMBIENTE_HOMOLOGACAO: { + 'servidor': 'hom.nfce.sefaz.ms.gov.br', + WS_NFE_RECEPCAO_EVENTO: 'ws/NFeRecepcaoEvento4', + WS_NFE_AUTORIZACAO: 'ws/NFeAutorizacao4', + WS_NFE_RET_AUTORIZACAO: 'ws/NFeRetAutorizacao4', + WS_NFE_CADASTRO: 'ws/CadConsultaCadastro4', + WS_NFE_INUTILIZACAO: 'ws/NFeInutilizacao4', + WS_NFE_CONSULTA: 'ws/NFeConsultaProtocolo4', + WS_NFE_SITUACAO: 'ws/NFeStatusServico4', + WS_NFCE_QR_CODE: 'www.dfe.ms.gov.br/nfce/qrcode?' + } } }