From 6e964a7ba1bae1bad31eee23ec053139c86e7009 Mon Sep 17 00:00:00 2001 From: Danimar Ribeiro Date: Mon, 9 Jan 2017 18:36:32 -0200 Subject: [PATCH] Ajuste no loop do jinja - usando builtin variable (#22) --- pytrustnfe/nfe/templates/NfeAutorizacao.xml | 4 +--- setup.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index 20295b9..304187a 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -170,9 +170,8 @@ {% endfor %} {% endif %} - {% set count = 1 %} {% for det in NFe.infNFe.detalhes %} - + {% with prod = det.prod %} {{ prod.cProd }} @@ -627,7 +626,6 @@ {% if det.infAdProd %} {{ det.infAdProd|normalize|escape }} {% endif %} - {% set count = count + 1 %} {% endfor %} diff --git a/setup.py b/setup.py index 43dcbf5..2581c0e 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # coding=utf-8 from setuptools import setup, find_packages -VERSION = "0.1.19" +VERSION = "0.1.20" setup( name="PyTrustNFe",