From 4c68cc8a7eadc049eccd09050cfd68dd80f55220 Mon Sep 17 00:00:00 2001 From: leonardo Date: Fri, 30 Dec 2016 15:24:15 +0000 Subject: [PATCH] bug #7788 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@64351 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/PuntoVentaServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index 9729df983..08bd69735 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -166,10 +166,11 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { String strFornecedor = ""; try{ strFornecedor = iag.getCodigoFornecedorWithIDWS(entidad.getPuntoventaId().toString()); + log.debug("Retorno consulta fornecedor ws: " + strFornecedor); } catch (RemoteException e) { log.error("", e.toString()); } - if (!strFornecedor.isEmpty()){ + if (!strFornecedor.contains("ERRO")){ // retornar msg a informação de registro já cadastrado entidad.setIndIntegradoAG(false); entidad.setMotivoNaoIntegradoAG("Fornecedor já cadastrado"); @@ -237,10 +238,11 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { String cliStr = ""; try{ cliStr = iag.getClienteWithIDWS(entidad.getPuntoventaId().toString()); + log.debug("Retorno consulta cliente ws: " + cliStr); } catch (RemoteException e) { log.error("", e.toString()); } - if (!cliStr.isEmpty()){ + if (!cliStr.contains("ERRO")){ // retornar msg a informação de registro já cadastrado entidad.setIndIntegradoAG(false); entidad.setMotivoNaoIntegradoAG("Cliente já cadastrado");