diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index 8f3cf9939..04ea03eeb 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -97,6 +97,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { Exception respEx = null; if (ApplicationProperties.getInstance().integracionTotvs()) { try { + if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion().equals(TipoRetorno.PENDENTE.getValor()) || entidad.getIndIntegracion().equals(TipoRetorno.ERRO.getValor()))) { String resp = integracionTotvs(entidad); @@ -522,7 +523,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { } private String integracionTotvs(PuntoVenta puntoVenta) throws Exception { - if (ApplicationProperties.getInstance().integracionTotvs()) { + if (ApplicationProperties.getInstance().integracionTotvs() && !constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")) { validaCampos(puntoVenta);