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);