From 1835dd39ce0186894c8a507753f9314f79e3e24e Mon Sep 17 00:00:00 2001 From: caiomagri Date: Wed, 24 Jul 2019 12:05:02 -0300 Subject: [PATCH] =?UTF-8?q?[IMP]=20Adicionando=20informa=C3=A7=C3=B5es=20d?= =?UTF-8?q?o=20responsavel=20tecnico=20da=20NFE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytrustnfe/nfe/templates/NfeAutorizacao.xml | 96 ++++++++++++++++------------- 1 file changed, 53 insertions(+), 43 deletions(-) diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index b91c5e8..40c8965 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -74,10 +74,10 @@ {% with emit = NFe.infNFe.emit %} {% if emit.tipo == 'person' -%} - {{ emit.cnpj_cpf }} + {{ emit.cnpj_cpf }} {% endif %} {% if emit.tipo == 'company' -%} - {{ emit.cnpj_cpf }} + {{ emit.cnpj_cpf }} {% endif %} {{ emit.xNome|normalize|escape }} {{ emit.xFant|normalize|escape }} @@ -105,15 +105,15 @@ {% with dest = NFe.infNFe.dest %} {% if NFe.infNFe.ide.idDest == '3' %} - {{ dest.idEstrangeiro }} + {{ dest.idEstrangeiro }} {% endif %} {% if NFe.infNFe.ide.idDest != '3' %} - {% if dest.tipo == 'person' -%} - {{ dest.cnpj_cpf }} - {% endif %} - {% if dest.tipo == 'company' -%} - {{ dest.cnpj_cpf }} - {% endif %} + {% if dest.tipo == 'person' -%} + {{ dest.cnpj_cpf }} + {% endif %} + {% if dest.tipo == 'company' -%} + {{ dest.cnpj_cpf }} + {% endif %} {% endif %} {{ dest.xNome|normalize|escape }} @@ -532,36 +532,36 @@ {% endif %} {% if NFe.infNFe.ide.mod != '65' and imposto.IPI is defined %} - - {{ imposto.IPI.clEnq }} - {{ imposto.IPI.CNPJProd }} - {{ imposto.IPI.cSelo }} - {{ imposto.IPI.qSelo }} - {{ imposto.IPI.cEnq }} - {% if imposto.IPI.CST in ('00', '49', '50', '99') %} - - {{ imposto.IPI.CST }} - {{ imposto.IPI.vBC }} - {{ imposto.IPI.pIPI }} - {{ imposto.IPI.qUnid }} - {{ imposto.IPI.vUnid }} - {{ imposto.IPI.vIPI }} - - {% endif %} - {% if imposto.IPI.CST in ('01', '02', '03', '04', '51', '52', '53', '54', '55') %} - - {{ imposto.IPI.CST }} - - {% endif %} - - {% if imposto.II is defined %} - - {{ imposto.II.vBC }} - {{ imposto.II.vDespAdu }} - {{ imposto.II.vII }} - {{ imposto.II.vIOF }} - - {% endif %} + + {{ imposto.IPI.clEnq }} + {{ imposto.IPI.CNPJProd }} + {{ imposto.IPI.cSelo }} + {{ imposto.IPI.qSelo }} + {{ imposto.IPI.cEnq }} + {% if imposto.IPI.CST in ('00', '49', '50', '99') %} + + {{ imposto.IPI.CST }} + {{ imposto.IPI.vBC }} + {{ imposto.IPI.pIPI }} + {{ imposto.IPI.qUnid }} + {{ imposto.IPI.vUnid }} + {{ imposto.IPI.vIPI }} + + {% endif %} + {% if imposto.IPI.CST in ('01', '02', '03', '04', '51', '52', '53', '54', '55') %} + + {{ imposto.IPI.CST }} + + {% endif %} + + {% if imposto.II is defined %} + + {{ imposto.II.vBC }} + {{ imposto.II.vDespAdu }} + {{ imposto.II.vII }} + {{ imposto.II.vIOF }} + + {% endif %} {% endif %} {% if imposto.ISSQN is defined %} @@ -605,7 +605,8 @@ {{ imposto.PIS.CST }} {% endif %} - {% if imposto.PIS.CST in ('49', '50', '51', '52', '53', '54', '55', '56', '60', '61', '62', '63', '64', '65', '66', '67', '70', '71', '72', '73', '74', '75', '98', '99') %} + {% if imposto.PIS.CST in ('49', '50', '51', '52', '53', '54', '55', '56', '60', '61', '62', + '63', '64', '65', '66', '67', '70', '71', '72', '73', '74', '75', '98', '99') %} {{ imposto.PIS.CST }} {{ imposto.PIS.vBC }} @@ -647,7 +648,8 @@ {{ imposto.COFINS.CST }} {% endif %} - {% if imposto.COFINS.CST in ('49', '50', '51', '52', '53', '54', '55', '56', '60', '61', '62', '63', '64', '65', '66', '67', '70', '71', '72', '73', '74', '75', '98', '99') %} + {% if imposto.COFINS.CST in ('49', '50', '51', '52', '53', '54', '55', '56', '60', '61', '62', + '63', '64', '65', '66', '67', '70', '71', '72', '73', '74', '75', '98', '99') %} {{ imposto.COFINS.CST }} {{ imposto.COFINS.vBC }} @@ -857,6 +859,14 @@ {% endfor %} {% endif %} + {% if NFe.infNFe.infRespTec is defined %} + + {{ NFe.infNFe.infRespTec.CNPJ }} + {{ NFe.infNFe.infRespTec.xContato|normalize|escape }} + {{ NFe.infNFe.infRespTec.email }} + {{ NFe.infNFe.infRespTec.fone }} + + {% endif %} {% if NFe.infNFe.exporta is defined %} {{ NFe.infNFe.exporta.UFSaidaPais }} @@ -873,8 +883,8 @@ {% endif %} - {{ NFe.infNFe.qrCode }} - {{ NFe.infNFe.urlChave }} + {{ NFe.infNFe.qrCode }} + {{ NFe.infNFe.urlChave }} {% endfor %}