Skip to content

Commit

Permalink
[FIX] Adicionando complemento de endereço na danfe
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed Dec 5, 2018
1 parent 8c2de79 commit 8de6521
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pytrustnfe/nfe/danfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def ide_emit(self, oXML=None, timezone=None):

cEnd = tagtext(oNode=elem_emit, cTag='xLgr') + ', ' + tagtext(
oNode=elem_emit, cTag='nro') + ' - '
cEnd += tagtext(oNode=elem_emit, cTag='xCpl') + ' - '
cEnd += tagtext(oNode=elem_emit, cTag='xBairro') + '<br />' + tagtext(
oNode=elem_emit, cTag='xMun') + ' - '
cEnd += 'Fone: ' + tagtext(oNode=elem_emit, cTag='fone') + '<br />'
Expand Down Expand Up @@ -416,8 +417,9 @@ def destinatario(self, oXML=None, timezone=None):
cDt, cHr = getdateByTimezone(
tagtext(oNode=elem_ide, cTag='dhSaiEnt'), timezone)
self.string(nMr - 24, self.nlin + 14.3, cDt + ' ' + cHr) # Dt saída
cEnd = tagtext(oNode=elem_dest, cTag='xLgr') + ', ' + tagtext(
oNode=elem_dest, cTag='nro')
cEnd = '%s, %s %s' % (tagtext(oNode=elem_dest, cTag='xLgr'),
tagtext(oNode=elem_dest, cTag='nro'),
tagtext(oNode=elem_dest, cTag='xCpl'))
self.string(self.nLeft + 1, self.nlin + 14.3, cEnd)
self.string(nMr - 98, self.nlin + 14.3,
tagtext(oNode=elem_dest, cTag='xBairro'))
Expand Down Expand Up @@ -895,6 +897,7 @@ def recibo_entrega(self, oXML=None, timezone=None):
cEnd = tagtext(oNode=el_dest, cTag='xNome') + ' - '
cEnd += tagtext(oNode=el_dest, cTag='xLgr') + ', ' + tagtext(
oNode=el_dest, cTag='nro') + ', '
cEnd += tagtext(oNode=el_dest, cTag='xCpl') + ' '
cEnd += tagtext(oNode=el_dest, cTag='xBairro') + ', ' + tagtext(
oNode=el_dest, cTag='xMun') + ' - '
cEnd += tagtext(oNode=el_dest, cTag='UF')
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 = "1.0.26"
VERSION = "1.0.27"


setup(
Expand Down

0 comments on commit 8de6521

Please sign in to comment.