Browse Source

Merge pull request #63 from faio/patch-2

Correção para emissão estado de GO
pull/67/head
Junior Tada 7 years ago
committed by GitHub
parent
commit
88b1f35520
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      pynfe/processamento/comunicacao.py

5
pynfe/processamento/comunicacao.py

@ -82,7 +82,12 @@ class ComunicacaoSefaz(Comunicacao):
if ind_sinc == 1:
try:
# Protocolo com envio OK
try:
inf_prot = prot[0][0] # root protNFe
except IndexError:
# Estados como GO vem com a tag header
inf_prot = prot[1][0]
lote_status = inf_prot.xpath("ns:retEnviNFe/ns:cStat", namespaces=ns)[0].text
# Lote processado
if lote_status == '104':

Loading…
Cancel
Save