From e7249dc38d0cc1a72ff7ff99cd5213c1eefffb91 Mon Sep 17 00:00:00 2001 From: martini97 Date: Thu, 8 Sep 2016 19:56:00 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=B5es=20na=20emi=C3=A7=C3=A3o=20d?= =?UTF-8?q?e=20nota=20fiscal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytrustnfe/nfe/templates/NfeAutorizacao.xml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index f5fa1e8..7844783 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -104,14 +104,24 @@ {% with imposto = det.imposto %} {{ imposto.vTotTrib }} + {% if imposto.ICMS.CST == '00' -%} - {{ imposto.ICMS.ICMS00.orig }} - {{ imposto.ICMS.ICMS00.CST }} - {{ imposto.ICMS.ICMS00.modBC }} - {{ imposto.ICMS.ICMS00.vBC }} - {{ imposto.ICMS.ICMS00.pICMS }} - {{ imposto.ICMS.ICMS00.vICMS }} + {{ imposto.ICMS.orig }} + {{ imposto.ICMS.CST }} + {{ imposto.ICMS.modBC }} + {{ imposto.ICMS.vBC }} + {{ imposto.ICMS.pICMS }} + {{ imposto.ICMS.vICMS }} + {% endif %} + {% if imposto.ICMS.CST == '101' -%} + + {{ imposto.ICMS.orig }} + {{ imposto.ICMS.CST }} + {{ imposto.ICMS.pCredSN }} + {{ imposto.ICMS.vCredICMSSN }} + + {% endif %} {{ imposto.IPI.cEnq }}