Browse Source

[VER] New version

* [FIX] Dont duplicate items

* [VERSION] Add
pull/223/head
marinaGD 7 years ago
committed by Danimar Ribeiro
parent
commit
eadc7b7306
  1. 7
      pytrustnfe/nfe/danfe.py
  2. 2
      setup.py

7
pytrustnfe/nfe/danfe.py

@ -202,7 +202,9 @@ class danfe(object):
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(
@ -725,6 +727,7 @@ obsCont[@xCampo='NomeVendedor']")
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]
@ -784,8 +787,6 @@ obsCont[@xCampo='NomeVendedor']")
self.canvas.setStrokeColor(black)
self.nlin += nH + 3
if (index == max_index):
id += 1
return id
def calculo_issqn(self, oXML=None):

2
setup.py

@ -2,7 +2,7 @@
from setuptools import setup, find_packages
VERSION = "1.0.33"
VERSION = "1.0.34"
setup(

Loading…
Cancel
Save