Skip to content

Commit

Permalink
Merge d8dd79d into 945dd77
Browse files Browse the repository at this point in the history
  • Loading branch information
maiconkkl committed Jan 24, 2019
2 parents 945dd77 + d8dd79d commit ad91f95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pytrustnfe/Servidores.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ def localizar_url(servico, estado, mod='55', ambiente=2):

if sigla == 'RS' and servico == WS_NFE_CADASTRO:
dominio = 'cad.sefazrs.rs.gov.br'
if sigla in ('AC', 'RN', 'PB', 'SC', 'RJ') and \
elif sigla in ('AC', 'RN', 'PB', 'SC') and \
servico == WS_NFE_CADASTRO:
dominio = 'cad.svrs.rs.gov.br'
if sigla == 'AN' and servico == WS_NFE_RECEPCAO_EVENTO:
elif sigla == 'AN' and servico == WS_NFE_RECEPCAO_EVENTO and ambiente == 1:
dominio = 'www.nfe.fazenda.gov.br'

return "https://%s/%s" % (dominio, complemento)


Expand Down Expand Up @@ -132,7 +131,7 @@ def localizar_qrcode(estado, ambiente=2):
WS_NFE_RECEPCAO_EVENTO: 'ws/recepcaoevento/recepcaoevento4.asmx?wsdl', # noqa
WS_NFE_AUTORIZACAO: 'ws/NfeAutorizacao/NFeAutorizacao4.asmx?wsdl',
WS_NFE_RET_AUTORIZACAO: 'ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx?wsdl', # noqa
WS_NFE_CADASTRO: 'ws/cadconsultacadastro/cadconsultacadastro2.asmx?wsdl', # noqa
WS_NFE_CADASTRO: 'ws/cadconsultacadastro/cadconsultacadastro4.asmx?wsdl', # noqa
},
AMBIENTE_HOMOLOGACAO: {
'servidor': 'nfe-homologacao.svrs.rs.gov.br',
Expand Down

0 comments on commit ad91f95

Please sign in to comment.