Skip to content

Commit

Permalink
[FIX] Tag NFref nao estava sendo lida corretamente
Browse files Browse the repository at this point in the history
  • Loading branch information
mstuttgart authored and mileo committed Apr 28, 2015
1 parent 320e8a0 commit 810c001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pysped/nfe/leiaute/nfe_110.py
Original file line number Diff line number Diff line change
Expand Up @@ -3650,12 +3650,11 @@ def get_txt(self):

txt = property(get_txt)



class NFRef(XMLNFe):
def __init__(self):
super(NFRef, self).__init__()
self.refNFe = TagCaracter(nome='refNFe', codigo='B13', tamanho=[44, 44], raiz='//NFRef', obrigatorio=False)
self.refNFe = TagCaracter(nome='refNFe', codigo='B13', tamanho=[44,
44], raiz='//NFref', obrigatorio=False)
self.refNF = RefNF()

def get_xml(self):
Expand Down
2 changes: 1 addition & 1 deletion pysped/nfe/leiaute/nfe_310.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ def set_xml(self, arquivo):
# "reenraizadas" (propriedade raiz) para poderem ser
# lidas corretamente
#
self.NFRef = self.le_grupo('//NFe/infNFe/ide/NFref', NFRef)
self.NFref = self.le_grupo('//NFe/infNFe/ide/NFref', NFRef)

self.tpImp.xml = arquivo
self.tpEmis.xml = arquivo
Expand Down

0 comments on commit 810c001

Please sign in to comment.