fixes bug #6959
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@51676 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9462861fba
commit
69f14c80b4
|
@ -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<Empresa>()));
|
||||
}
|
||||
|
||||
|
||||
if (itemTipoPontoVenta != null) {
|
||||
tipoPontoVenta = (TipoPuntoVenta) itemTipoPontoVenta.getValue();
|
||||
claseServicioBusqueda.addFilterEqual("tipoPuntoVenta", tipoPontoVenta);
|
||||
|
|
Loading…
Reference in New Issue