Browse Source

Ajuste no loop do jinja - usando builtin variable (#22)

feature/betha
Danimar Ribeiro 9 years ago
committed by GitHub
parent
commit
6e964a7ba1
  1. 4
      pytrustnfe/nfe/templates/NfeAutorizacao.xml
  2. 2
      setup.py

4
pytrustnfe/nfe/templates/NfeAutorizacao.xml

@ -170,9 +170,8 @@
</autXML>
{% endfor %}
{% endif %}
{% set count = 1 %}
{% for det in NFe.infNFe.detalhes %}
<det nItem="{{ count }}">
<det nItem="{{ loop.index }}">
<prod>
{% with prod = det.prod %}
<cProd>{{ prod.cProd }}</cProd>
@ -627,7 +626,6 @@
{% if det.infAdProd %}
<infAdProd>{{ det.infAdProd|normalize|escape }}</infAdProd>
{% endif %}
{% set count = count + 1 %}
</det>
{% endfor %}
<total>

2
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",

Loading…
Cancel
Save