Skip to content

Commit

Permalink
Ajustada verificação para busca de URL de contingência NF-e
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaellawrenz authored May 13, 2024
1 parent fa7a6f9 commit 6293ec6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6293ec6

Please sign in to comment.