bug #7788
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@65156 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
103bf1e4e1
commit
94013a6f37
|
@ -153,8 +153,14 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
|
|
||||||
log.debug("iniciando integração com AG");
|
log.debug("iniciando integração com AG");
|
||||||
integrarClienteAG(entidad);
|
integrarClienteAG(entidad);
|
||||||
|
if (!entidad.getIndIntegradoAG()){
|
||||||
|
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
|
||||||
|
}
|
||||||
integrarFornecedorAG(entidad);
|
integrarFornecedorAG(entidad);
|
||||||
log.debug("fim da integração com AG");
|
log.debug("fim da integração com AG");
|
||||||
|
if (!entidad.getIndIntegradoAG()){
|
||||||
|
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
|
||||||
|
}
|
||||||
|
|
||||||
return entidad;
|
return entidad;
|
||||||
}
|
}
|
||||||
|
@ -380,7 +386,13 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
|
|
||||||
log.debug("iniciando integração com AG");
|
log.debug("iniciando integração com AG");
|
||||||
integrarClienteAG(entidad);
|
integrarClienteAG(entidad);
|
||||||
|
if (!entidad.getIndIntegradoAG()){
|
||||||
|
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
|
||||||
|
}
|
||||||
integrarFornecedorAG(entidad);
|
integrarFornecedorAG(entidad);
|
||||||
|
if (!entidad.getIndIntegradoAG()){
|
||||||
|
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
|
||||||
|
}
|
||||||
log.debug("fim da integração com AG");
|
log.debug("fim da integração com AG");
|
||||||
|
|
||||||
if (respEx != null) {
|
if (respEx != null) {
|
||||||
|
|
Loading…
Reference in New Issue