Skip to content

Commit

Permalink
Merge pull request aricaldeira#2 from kmee/fix_devolucao
Browse files Browse the repository at this point in the history
[FIX] Tag NFref nao estava sendo lida corretamente
  • Loading branch information
danimaribeiro committed May 6, 2015
2 parents 8161870 + 810c001 commit 35cb2c5
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 35cb2c5

Please sign in to comment.