bug #7788
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@66461 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
324df3ca1f
commit
d285cf1d3a
|
@ -152,7 +152,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
|||
}
|
||||
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");
|
||||
integrarClienteAG(entidad);
|
||||
if (!entidad.getIndIntegradoAG()){
|
||||
|
@ -413,7 +414,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
|||
}
|
||||
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");
|
||||
integrarClienteAG(entidad);
|
||||
if (!entidad.getIndIntegradoAG()){
|
||||
|
|
Loading…
Reference in New Issue