leonardo 2017-03-07 18:23:37 +00:00
parent 324df3ca1f
commit d285cf1d3a
1 changed files with 4 additions and 2 deletions

View File

@ -152,7 +152,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
} }
entidad = puntoVentaDAO.suscribir(entidad); entidad = puntoVentaDAO.suscribir(entidad);
if (ApplicationProperties.getInstance().integracionAGWS()) { Constante empresasIntegraAG = constanteService.buscarPorNomeConstante("EMPRESAS_INTEGRACAO_AG");
if (empresasIntegraAG != null && empresasIntegraAG.getValorconstante() != null && empresasIntegraAG.getValorconstante().contains(entidad.getEmpresa().getEmpresaId().toString())) {
log.debug("iniciando integração com AG"); log.debug("iniciando integração com AG");
integrarClienteAG(entidad); integrarClienteAG(entidad);
if (!entidad.getIndIntegradoAG()){ if (!entidad.getIndIntegradoAG()){
@ -413,7 +414,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
} }
entidad = puntoVentaDAO.actualizacion(entidad); entidad = puntoVentaDAO.actualizacion(entidad);
if (ApplicationProperties.getInstance().integracionAGWS()) { Constante empresasIntegraAG = constanteService.buscarPorNomeConstante("EMPRESAS_INTEGRACAO_AG");
if (empresasIntegraAG != null && empresasIntegraAG.getValorconstante() != null && empresasIntegraAG.getValorconstante().contains(entidad.getEmpresa().getEmpresaId().toString())) {
log.debug("iniciando integração com AG"); log.debug("iniciando integração com AG");
integrarClienteAG(entidad); integrarClienteAG(entidad);
if (!entidad.getIndIntegradoAG()){ if (!entidad.getIndIntegradoAG()){