leonardo 2017-01-23 12:30:44 +00:00
parent 103bf1e4e1
commit 94013a6f37
1 changed files with 12 additions and 0 deletions

View File

@ -153,8 +153,14 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
log.debug("iniciando integração com AG");
integrarClienteAG(entidad);
if (!entidad.getIndIntegradoAG()){
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
}
integrarFornecedorAG(entidad);
log.debug("fim da integração com AG");
if (!entidad.getIndIntegradoAG()){
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
}
return entidad;
}
@ -380,7 +386,13 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
log.debug("iniciando integração com AG");
integrarClienteAG(entidad);
if (!entidad.getIndIntegradoAG()){
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
}
integrarFornecedorAG(entidad);
if (!entidad.getIndIntegradoAG()){
throw new IntegracionException(entidad.getMotivoNaoIntegradoAG());
}
log.debug("fim da integração com AG");
if (respEx != null) {