From b45843d5c4d6a1a4185a729acd4704d83443c4a6 Mon Sep 17 00:00:00 2001 From: julio Date: Tue, 7 Apr 2015 13:29:33 +0000 Subject: [PATCH] Totvs - WS Fornecedor / WS Cliente / WS Pedido Compra (fixes bug #6127) git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@42775 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/PuntoVentaServiceImpl.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index dd8cc274d..40b8ee50d 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -275,8 +275,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { tel = puntoVenta.getNumtelefonouno(); } - String email = puntoVenta.getDescCorreo(); - String fax = puntoVenta.getNumfax(); + String email = puntoVenta.getDescCorreo() == null ? "" : puntoVenta.getDescCorreo(); + String fax = puntoVenta.getNumfax() == null ? "" : puntoVenta.getNumfax(); String inscr = puntoVenta.getNumIEPuntoVenta(); String inscrm = InscricaoMunicipal.ISENTO.name(); @@ -293,8 +293,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { tipoPessoa = TipoPessoa.J.name(); } - String obs = puntoVenta.getComentarios(); - obs = StringUtils.isBlank(obs) ? "sem obs." : obs; + String obs = StringUtils.isBlank(puntoVenta.getComentarios()) ? "sem obs." : puntoVenta.getComentarios(); String conta = "1110101001001"; // DEVE SER REVISADO COM A GUANABARA @@ -309,7 +308,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { agencia = agencia == null ? null : agenciaComp[0]; dgverag = agencia == null ? null : agenciaComp[1]; } catch (Exception e) { - tel = puntoVenta.getAgenciaId().getNumagencia(); + agencia = puntoVenta.getAgenciaId() == null ? "" : puntoVenta.getAgenciaId().getNumagencia(); } String banco = puntoVenta.getAgenciaId().getInstiFinanceiraId() == null ? "" : puntoVenta.getAgenciaId().getInstiFinanceiraId().getCodigo();