Skip to content

Commit

Permalink
Merge 12152ae into 051f3b8
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaGD authored Mar 25, 2019
2 parents 051f3b8 + 12152ae commit 8f792eb
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 8f792eb

Please sign in to comment.