Browse Source

corrected issues in layout of danfe

pull/144/head
guilherme 8 years ago
parent
commit
e51ec042b8
  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) P = Paragraph(tagtext(oNode=elem_emit, cTag='xNome'), styleN)
w, h = P.wrap(55 * mm, 40 * mm) w, h = P.wrap(55 * mm, 40 * mm)
P.drawOn(self.canvas, (self.nLeft + 30) * 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: if self.logo:
img = get_image(self.logo, width=2 * cm) img = get_image(self.logo, width=2 * cm)
@ -347,7 +347,7 @@ class danfe(object):
P = Paragraph(cEnd, styleN) P = Paragraph(cEnd, styleN)
w, h = P.wrap(55 * mm, 30 * mm) w, h = P.wrap(55 * mm, 30 * mm)
P.drawOn(self.canvas, (self.nLeft + 30) * mm, P.drawOn(self.canvas, (self.nLeft + 30) * mm,
(self.height - self.nlin - 31) * mm)
(self.height - self.nlin - 33) * mm)
# Homologação # Homologação
if tagtext(oNode=elem_ide, cTag='tpAmb') == '2': if tagtext(oNode=elem_ide, cTag='tpAmb') == '2':

Loading…
Cancel
Save