Skip to content

Commit

Permalink
Merge 810b645 into b474ec9
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed May 14, 2018
2 parents b474ec9 + 810b645 commit ee468a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pytrustnfe/nfe/danfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ def impostos(self, oXML=None):

def transportes(self, oXML=None):
el_transp = oXML.find(".//{http://www.portalfiscal.inf.br/nfe}transp")
veic_transp = oXML.find(
".//{http://www.portalfiscal.inf.br/nfe}veicTransp")
nMr = self.width - self.nRight

self.canvas.setFont('NimbusSanL-Bold', 7)
Expand Down Expand Up @@ -627,6 +629,12 @@ def transportes(self, oXML=None):
tagtext(oNode=el_transp, cTag='xNome')[:40])
self.string(self.nLeft + 71, self.nlin + 7.7,
self.oFrete[tagtext(oNode=el_transp, cTag='modFrete')])
self.string(self.nLeft + 99, self.nlin + 7.7,
tagtext(oNode=el_transp, cTag='RNTC'))
self.string(self.nLeft + 116, self.nlin + 7.7,
tagtext(oNode=el_transp, cTag='placa'))
self.string(self.nLeft + 142, self.nlin + 7.7,
tagtext(oNode=veic_transp, cTag='UF'))
self.string(nMr - 39, self.nlin + 7.7,
format_cnpj_cpf(tagtext(oNode=el_transp, cTag='CNPJ')))
self.string(self.nLeft + 1, self.nlin + 14.2,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


VERSION = "0.9.21"
VERSION = "0.9.22"


setup(
Expand Down

0 comments on commit ee468a7

Please sign in to comment.