fixed #7323 - correção filtro de ruta no Relatório de Gratuidade
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@56708 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
062bbf4fb5
commit
08a11e2930
|
@ -34,7 +34,7 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
||||
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
||||
String agencia = parametros.get("agencia") != null ? parametros.get("agencia").toString() : "";
|
||||
String ruta = parametros.get("ruta") != null ? parametros.get("ruta").toString() : "";
|
||||
String ruta = parametros.get("ruta") != null && !parametros.get("ruta").equals(-1) ? parametros.get("ruta").toString() : "";
|
||||
String origem = parametros.get("origem") != null ? parametros.get("origem").toString() : "";
|
||||
String destino = parametros.get("destino") != null ? parametros.get("destino").toString() : "";
|
||||
String categoria = parametros.get("categoria") != null ? parametros.get("categoria").toString() : "";
|
||||
|
@ -141,7 +141,7 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
if (!agencia.isEmpty()){
|
||||
sql.append(" AND b.puntoventa_id = :puntoventa_id ");
|
||||
}
|
||||
if (!ruta.isEmpty()){
|
||||
if (!ruta.isEmpty() && !ruta.equals("-1")){
|
||||
sql.append(" AND b.ruta_id = :ruta_id ");
|
||||
}
|
||||
if(!origem.isEmpty()){
|
||||
|
|
Loading…
Reference in New Issue