Browse Source

corrected issues in layout of danfe

pull/146/head
guilherme 8 years ago
committed by Danimar Ribeiro
parent
commit
f0f38237f2
  1. 4
      pytrustnfe/nfe/danfe.py

4
pytrustnfe/nfe/danfe.py

@ -323,7 +323,7 @@ class danfe(object):
P = Paragraph(tagtext(oNode=elem_emit, cTag='xNome'), styleN)
w, h = P.wrap(55 * mm, 40 * mm)
P.drawOn(self.canvas, (self.nLeft + 30) * mm,
(self.height - self.nlin - ((5*h + 12)/12)) * mm)
(self.height - self.nlin - ((4.3*h + 12)/12)) * mm)
if self.logo:
img = get_image(self.logo, width=2 * cm)
@ -347,7 +347,7 @@ class danfe(object):
P = Paragraph(cEnd, styleN)
w, h = P.wrap(55 * mm, 30 * mm)
P.drawOn(self.canvas, (self.nLeft + 30) * mm,
(self.height - self.nlin - 31) * mm)
(self.height - self.nlin - 33) * mm)
# Homologação
if tagtext(oNode=elem_ide, cTag='tpAmb') == '2':

Loading…
Cancel
Save