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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
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': |
|
|
|
|