Skip to content

Commit

Permalink
Limite de linhas e razão social
Browse files Browse the repository at this point in the history
  • Loading branch information
carcaroff authored and danimaribeiro committed Apr 16, 2018
1 parent 9e3429f commit daa4b9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pytrustnfe/nfe/danfe.py
Expand Up @@ -141,8 +141,8 @@ def __init__(self, sizepage=A4, list_xml=None, recibo=True,
self.Page = 1

# Calculando total linhas usadas para descrições dos itens
# Com bloco fatura, apenas 29 linhas para itens na primeira folha
nNr_Lin_Pg_1 = 34 if oXML_cobr is None else 30
# Com bloco fatura, apenas 25 linhas para itens na primeira folha
nNr_Lin_Pg_1 = 30 if oXML_cobr is None else 26
# [ rec_ini , rec_fim , lines , limit_lines ]
oPaginator = [[0, 0, 0, nNr_Lin_Pg_1]]
el_det = oXML.findall(".//{http://www.portalfiscal.inf.br/nfe}det")
Expand Down Expand Up @@ -311,9 +311,9 @@ def ide_emit(self, oXML=None, timezone=None):

# Razão Social emitente
P = Paragraph(tagtext(oNode=elem_emit, cTag='xNome'), styleN)
w, h = P.wrap(55 * mm, 50 * mm)
w, h = P.wrap(55 * mm, 40 * mm)
P.drawOn(self.canvas, (self.nLeft + 30) * mm,
(self.height - self.nlin - 12) * mm)
(self.height - self.nlin - ((5*h + 12)/12)) * mm)

if self.logo:
img = get_image(self.logo, width=2 * cm)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
# coding=utf-8
from setuptools import setup, find_packages

VERSION = "0.1.48"
VERSION = "0.1.49"

setup(
name="PyTrustNFe",
Expand Down

0 comments on commit daa4b9e

Please sign in to comment.