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] =?UTF-8?q?[IMP]=20Habilita=20enviar=20apenas=20o=20CPF=20?= =?UTF-8?q?no=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(