Skip to content

Commit

Permalink
[VER] New version
Browse files Browse the repository at this point in the history
* [FIX] Dont duplicate items

* [VERSION] Add
  • Loading branch information
marinaGD authored and danimaribeiro committed Mar 25, 2019
1 parent 051f3b8 commit eadc7b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pytrustnfe/nfe/danfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ def __init__(self, sizepage=A4, list_xml=None, recibo=True,
self.adicionais(oXML=oXML, tamanho_diminuir=tamanho_ocupado)

# Gera o restante das páginas do XML
while index <= nId:
while index < nId:
if index < 0:
index = index * -1
self.newpage()
self.ide_emit(oXML=oXML, timezone=timezone)
index = self.produtos(
Expand Down Expand Up @@ -725,6 +727,7 @@ def produtos(self, oXML=None, el_det=None, index=0, max_index=0,
line_height = max(len(list_cod_prod[id]), len(list_desc[id]))
line_height *= nStep
if nLin + line_height > maxHeight:
id = id * -1
break

item = el_det[id]
Expand Down Expand Up @@ -784,8 +787,6 @@ def produtos(self, oXML=None, el_det=None, index=0, max_index=0,
self.canvas.setStrokeColor(black)

self.nlin += nH + 3
if (index == max_index):
id += 1
return id

def calculo_issqn(self, oXML=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


VERSION = "1.0.33"
VERSION = "1.0.34"


setup(
Expand Down

0 comments on commit eadc7b7

Please sign in to comment.