From a269c5432a0e506b09be03ca44bb7c8ae46584f2 Mon Sep 17 00:00:00 2001 From: emerson Date: Tue, 18 Sep 2018 14:12:17 +0000 Subject: [PATCH] fixes bug#0012186 dev: thiago qua: marcelo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@85486 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java | 3 ++- .../ventaboletos/service/impl/PuntoVentaServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java b/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java index 0df9d82d0..12fa85e5f 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java +++ b/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java @@ -28,6 +28,7 @@ import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import org.apache.commons.lang.BooleanUtils; import org.hibernate.annotations.LazyCollection; import org.hibernate.annotations.LazyCollectionOption; @@ -916,7 +917,7 @@ public class PuntoVenta implements Serializable { } public Boolean getIndIntegradoAG() { - return indIntegradoAG; + return BooleanUtils.isTrue(indIntegradoAG); } public void setIndIntegradoAG(Boolean indIntegradoAG) { diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index aa88f9ad2..18183f3ec 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -172,7 +172,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { DaoAG.getInstance().setDBConnection(connection); integrarClienteAG(entidad); - if (entidad.getIndIntegradoAG() != null && !entidad.getIndIntegradoAG()){ + if (!entidad.getIndIntegradoAG()){ motivoNaoIntegrado += "Cliente: " + entidad.getMotivoNaoIntegradoAG(); } integrarFornecedorAG(entidad);