From 69f14c80b4f42001cb7c90449b78ac7478f30b12 Mon Sep 17 00:00:00 2001 From: leonardo Date: Wed, 30 Dec 2015 12:53:29 +0000 Subject: [PATCH] fixes bug #6959 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@51676 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../catalogos/BusquedaPuntoVentaController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaPuntoVentaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaPuntoVentaController.java index d352f0d62..837df9d6d 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaPuntoVentaController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaPuntoVentaController.java @@ -13,7 +13,9 @@ import java.util.ListIterator; import java.util.Map; import org.apache.commons.lang.StringUtils; + import com.trg.search.Filter; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; @@ -33,6 +35,7 @@ import org.zkoss.zul.Textbox; import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Moneda; import com.rjconsultores.ventaboletos.entidad.Nodo; +import com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa; import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta; import com.rjconsultores.ventaboletos.service.MonedaService; @@ -315,9 +318,10 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer { empresa = (Empresa) itemEmpresa.getValue(); claseServicioBusqueda.addFilterEqual("lsPtovtaEmpresa.empresa", empresa); } else { - claseServicioBusqueda.addFilterIn("lsPtovtaEmpresa.empresa", lsEmpresas); + claseServicioBusqueda.addFilterOr(Filter.in("lsPtovtaEmpresa.empresa", lsEmpresas), Filter.in("lsPtovtaEmpresa.empresa", new ArrayList())); } + if (itemTipoPontoVenta != null) { tipoPontoVenta = (TipoPuntoVenta) itemTipoPontoVenta.getValue(); claseServicioBusqueda.addFilterEqual("tipoPuntoVenta", tipoPontoVenta);