Browse Source

Merge branch 'master3' into NT2018_005_v1_20

pull/222/head
Danimar Ribeiro 7 years ago
committed by GitHub
parent
commit
f089aa6e2f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      pytrustnfe/nfe/danfe.py

7
pytrustnfe/nfe/danfe.py

@ -202,7 +202,9 @@ class danfe(object):
self.adicionais(oXML=oXML, tamanho_diminuir=tamanho_ocupado) self.adicionais(oXML=oXML, tamanho_diminuir=tamanho_ocupado)
# Gera o restante das páginas do XML # Gera o restante das páginas do XML
while index <= nId:
while index < nId:
if index < 0:
index = index * -1
self.newpage() self.newpage()
self.ide_emit(oXML=oXML, timezone=timezone) self.ide_emit(oXML=oXML, timezone=timezone)
index = self.produtos( index = self.produtos(
@ -725,6 +727,7 @@ obsCont[@xCampo='NomeVendedor']")
line_height = max(len(list_cod_prod[id]), len(list_desc[id])) line_height = max(len(list_cod_prod[id]), len(list_desc[id]))
line_height *= nStep line_height *= nStep
if nLin + line_height > maxHeight: if nLin + line_height > maxHeight:
id = id * -1
break break
item = el_det[id] item = el_det[id]
@ -784,8 +787,6 @@ obsCont[@xCampo='NomeVendedor']")
self.canvas.setStrokeColor(black) self.canvas.setStrokeColor(black)
self.nlin += nH + 3 self.nlin += nH + 3
if (index == max_index):
id += 1
return id return id
def calculo_issqn(self, oXML=None): def calculo_issqn(self, oXML=None):

Loading…
Cancel
Save