From fa7a6f99fc2347b17d86d4248f4d698ff124b25a Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 7 May 2024 14:25:43 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Ajustada=20busca=20da=20url=20de=20envio=20?= =?UTF-8?q?quando=20estiver=20em=20conting=C3=AAncia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/br/com/swconsultoria/nfe/util/WebServiceUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java index bfd3faec..1caea04d 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java @@ -90,9 +90,6 @@ public static String getUrl(ConfiguracoesNfe config, DocumentoEnum tipoDocumento || tipoServico.equals(ServicosEnum.EPEC)) { secao = config.getAmbiente().equals(AmbienteEnum.HOMOLOGACAO) ? "NFe_AN_H" : "NFe_AN_P"; - } else if (!tipoServico.equals(ServicosEnum.URL_CONSULTANFCE) - && !tipoServico.equals(ServicosEnum.URL_QRCODE) && ObjetoUtil.verifica(url).isPresent()) { - secao = url; } else if (config.isContigenciaSVC()) { // SVC-RS if (config.getEstado().equals(EstadosEnum.GO) || config.getEstado().equals(EstadosEnum.AM) @@ -108,6 +105,9 @@ public static String getUrl(ConfiguracoesNfe config, DocumentoEnum tipoDocumento secao = tipoDocumento.getTipo() + "_SVC-AN_" + (config.getAmbiente().equals(AmbienteEnum.HOMOLOGACAO) ? "H" : "P"); } + }else if (!tipoServico.equals(ServicosEnum.URL_CONSULTANFCE) + && !tipoServico.equals(ServicosEnum.URL_QRCODE) && ObjetoUtil.verifica(url).isPresent()) { + secao = url; } url = ini.get(secao, tipoServico.getServico().toLowerCase()); From 6293ec6786b7767581f41e5572c3bd4a3b39fd25 Mon Sep 17 00:00:00 2001 From: Ismael Luan Lawrenz <37849018+ismaellawrenz@users.noreply.github.com> Date: Mon, 13 May 2024 08:46:08 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Ajustada=20verifica=C3=A7=C3=A3o=20para=20b?= =?UTF-8?q?usca=20de=20URL=20de=20conting=C3=AAncia=20NF-e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/br/com/swconsultoria/nfe/util/WebServiceUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java index 1caea04d..33660c2f 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java @@ -89,8 +89,9 @@ public static String getUrl(ConfiguracoesNfe config, DocumentoEnum tipoDocumento || tipoServico.equals(ServicosEnum.MANIFESTACAO) || tipoServico.equals(ServicosEnum.EPEC)) { secao = config.getAmbiente().equals(AmbienteEnum.HOMOLOGACAO) ? "NFe_AN_H" : "NFe_AN_P"; - - } else if (config.isContigenciaSVC()) { + } else if (!tipoServico.equals(ServicosEnum.URL_CONSULTANFCE) + && !tipoServico.equals(ServicosEnum.URL_QRCODE) + && config.isContigenciaSVC() && tipoDocumento.equals(DocumentoEnum.NFE)) { // SVC-RS if (config.getEstado().equals(EstadosEnum.GO) || config.getEstado().equals(EstadosEnum.AM) || config.getEstado().equals(EstadosEnum.BA) || config.getEstado().equals(EstadosEnum.CE)