diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index a4e9af8..0eb2e3c 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 }} @@ -141,6 +143,7 @@ {{ NFe.infNFe.retirada.CNPJ }} {{ NFe.infNFe.retirada.CPF }} + {{ NFe.infNFe.retirada.xNome|normalize|escape }} {{ NFe.infNFe.retirada.xLgr|normalize|escape }} {{ NFe.infNFe.retirada.nro }} {{ NFe.infNFe.retirada.xCpl|normalize|escape }} @@ -148,12 +151,19 @@ {{ NFe.infNFe.retirada.cMun }} {{ NFe.infNFe.retirada.xMun|normalize }} {{ NFe.infNFe.retirada.UF }} + {{ NFe.infNFe.retirada.CEP }} + {{ NFe.infNFe.retirada.cPais }} + {{ NFe.infNFe.retirada.xPais|normalize|escape }} + {{ NFe.infNFe.retirada.fone }} + {{ NFe.infNFe.retirada.email }} + {{ NFe.infNFe.retirada.IE }} {% endif %} {% if NFe.infNFe.entrega is defined %} {{ NFe.infNFe.entrega.CNPJ }} {{ NFe.infNFe.entrega.CPF }} + {{ NFe.infNFe.entrega.xNome|normalize|escape }} {{ NFe.infNFe.entrega.xLgr|normalize|escape }} {{ NFe.infNFe.entrega.nro }} {{ NFe.infNFe.entrega.xCpl|normalize|escape }} @@ -161,6 +171,12 @@ {{ NFe.infNFe.entrega.cMun }} {{ NFe.infNFe.entrega.xMun }} {{ NFe.infNFe.entrega.UF }} + {{ NFe.infNFe.entrega.CEP }} + {{ NFe.infNFe.entrega.cPais }} + {{ NFe.infNFe.entrega.xPais|normalize|escape }} + {{ NFe.infNFe.entrega.fone }} + {{ NFe.infNFe.entrega.email }} + {{ NFe.infNFe.entrega.IE }} {% endif %} {% if NFe.infNFe.autXML %} @@ -243,7 +259,9 @@ {% endfor %} {% endif %} - {{ prod.xPed }} + {% if NFe.infNFe.compra is defined %} + {{ NFe.infNFe.compra.xPed }} + {% endif %} {{ prod.nItemPed }} {{ prod.nFCI }} {% for rastro in prod.rastro %} @@ -258,6 +276,7 @@ {% for med in prod.med %} {{ med.cProdANVISA }} + {{ med.xMotivoIsencao }} {{ med.vPMC }} {% endfor %} @@ -266,6 +285,7 @@ {% with imposto = det.imposto %} {{ imposto.vTotTrib }} + {% if imposto.ICMS is defined %} {% if imposto.ICMS.CST == '00' -%} @@ -365,6 +385,7 @@ {{ imposto.ICMS.CST }} {{ imposto.ICMS.vBCSTRet }} {{ imposto.ICMS.pST }} + {{ imposto.ICMS.vICMSSubstituto }} {{ imposto.ICMS.vICMSSTRet }} {{ imposto.ICMS.vBCFCPSTRet }} {{ imposto.ICMS.pFCPSTRet }} @@ -443,9 +464,18 @@ {{ imposto.ICMSST.orig }} {{ imposto.ICMSST.CST }} {{ imposto.ICMSST.vBCSTRet }} + {{ imposto.ICMSST.pST }} + {{ imposto.ICMSST.vICMSSubstituto }} {{ imposto.ICMSST.vICMSSTRet }} + {{ imposto.ICMSST.vBCFCPSTRet }} + {{ imposto.ICMSST.pFCPSTRet }} + {{ imposto.ICMSST.vFCPSTRet }} {{ imposto.ICMSST.vBCSTDest }} {{ imposto.ICMSST.vICMSSTDest }} + {{ imposto.ICMSST.pRedBCEfet }} + {{ imposto.ICMSST.vBCEfet }} + {{ imposto.ICMSST.pICMSEfet }} + {{ imposto.ICMSST.vICMSEfet }} {% endif %} {% if imposto.ICMS.CST == '101' -%} @@ -500,7 +530,7 @@ {{ imposto.ICMS.CST }} {{ imposto.ICMS.vBCSTRet }} {{ imposto.ICMS.pST }} - {{imposto.ICMS.vICMSSubstituto}} + {{ imposto.ICMS.vICMSSubstituto }} {{ imposto.ICMS.vICMSSTRet }} {{ imposto.ICMS.vBCFCPSTRet }} {{ imposto.ICMS.pFCPSTRet }} @@ -530,37 +560,58 @@ {% endif %} - {% if NFe.infNFe.ide.mod != '65' %} - - {{ 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 %} + {% 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 %} + {% endif %} + {% if imposto.ISSQN is defined %} + + {{ imposto.ISSQN.vBC }} + {{ imposto.ISSQN.vAliq }} + {{ imposto.ISSQN.vISSQN }} + {{ imposto.ISSQN.cMunFG }} + {{ imposto.ISSQN.cListServ }} + {{ imposto.ISSQN.vDeducao }} + {{ imposto.ISSQN.vOutro }} + {{ imposto.ISSQN.vDescIncond }} + {{ imposto.ISSQN.vDescCond }} + {{ imposto.ISSQN.vDeducao }} + {{ imposto.ISSQN.indISS }} + {{ imposto.ISSQN.cServico }} + {{ imposto.ISSQN.cMun }} + {{ imposto.ISSQN.cPais }} + {{ imposto.ISSQN.nProcesso }} + {{ imposto.ISSQN.indIncentivo }} + {% endif %} {% if imposto.PIS.CST in ('01', '02') %} @@ -638,33 +689,13 @@ {% endif %} {% if imposto.COFINSST is defined %} - + {{ imposto.COFINSST.vBC }} {{ imposto.COFINSST.pCOFINS }} {{ imposto.COFINSST.qBCProd }} {{ imposto.COFINSST.vAliqProd }} {{ imposto.COFINSST.vCOFINS }} - - {% endif %} - {% if imposto.ISSQN is defined %} - - {{ imposto.ISSQN.vBC }} - {{ imposto.ISSQN.vAliq }} - {{ imposto.ISSQN.vISSQN }} - {{ imposto.ISSQN.cMunFG }} - {{ imposto.ISSQN.cListServ }} - {{ imposto.ISSQN.vDeducao }} - {{ imposto.ISSQN.vOutro }} - {{ imposto.ISSQN.vDescIncond }} - {{ imposto.ISSQN.vDescCond }} - {{ imposto.ISSQN.vDeducao }} - {{ imposto.ISSQN.indISS }} - {{ imposto.ISSQN.cServico }} - {{ imposto.ISSQN.cMun }} - {{ imposto.ISSQN.cPais }} - {{ imposto.ISSQN.nProcesso }} - {{ imposto.ISSQN.vDeducao }} - + {% endif %} {% if imposto.ICMSUFDest is defined %} @@ -831,8 +862,8 @@ {{ pag.card.cAut }} {% endif %} - {{ pag.vTroco }} + {{ pag.vTroco }} {% endfor %} {% endif %} @@ -856,6 +887,16 @@ {% endfor %} {% endif %} + {% if NFe.infNFe.infRespTec is defined %} + + {{ NFe.infNFe.infRespTec.CNPJ }} + {{ NFe.infNFe.infRespTec.xContato }} + {{ NFe.infNFe.infRespTec.email }} + {{ NFe.infNFe.infRespTec.fone }} + {{ NFe.infNFe.infRespTec.idCSRT }} + {{ NFe.infNFe.infRespTec.hashCSRT }} + + {% endif %} {% if NFe.infNFe.exporta is defined %} {{ NFe.infNFe.exporta.UFSaidaPais }} @@ -871,6 +912,10 @@ {% endif %} + + {{ NFe.infNFe.qrCode }} + {{ NFe.infNFe.urlChave }} + {% endfor %} diff --git a/setup.py b/setup.py index dbb446c..aaffe35 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # coding=utf-8 from setuptools import setup, find_packages -VERSION = "1.0.5" +VERSION = "1.0.6" setup(