leonardo 2017-01-30 12:56:43 +00:00
parent d1f4e53493
commit 81ccdddc04
1 changed files with 2 additions and 0 deletions

View File

@ -224,6 +224,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
fornecedor.setIDWS(entidad.getNumPuntoVenta()); fornecedor.setIDWS(entidad.getNumPuntoVenta());
try{ try{
String retornoAG = iag.incluiFornecedor(fornecedor); String retornoAG = iag.incluiFornecedor(fornecedor);
entidad.setIndIntegradoAG(true);
wslog.debug(retornoAG); wslog.debug(retornoAG);
} catch (RemoteException e) { } catch (RemoteException e) {
entidad.setIndIntegradoAG(false); entidad.setIndIntegradoAG(false);
@ -321,6 +322,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
cli.getServicosCliente().setCRS_Codigo(""); cli.getServicosCliente().setCRS_Codigo("");
try{ try{
String retornoAG = iag.incluiCliente(cli); String retornoAG = iag.incluiCliente(cli);
entidad.setIndIntegradoAG(true);
wslog.debug(retornoAG); wslog.debug(retornoAG);
} catch (RemoteException e) { } catch (RemoteException e) {
entidad.setIndIntegradoAG(false); entidad.setIndIntegradoAG(false);