diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index a570da844..ee7f02efd 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -76,7 +76,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { Exception respEx = null; try { - if (entidad.getIndIntegracion() != TipoRetorno.CONCLUIDA.getValor()) { + if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() + || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) { String resp = integracionTotvs(entidad); TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp); @@ -133,7 +134,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { Exception respEx = null; try { - if (entidad.getIndIntegracion() != TipoRetorno.CONCLUIDA.getValor()) { + if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() + || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) { String resp = integracionTotvs(entidad); TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp);