fixes bug#23922
dev: VALDEVIR qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@110579 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e89510bd09
commit
08cfa84f10
|
@ -563,19 +563,19 @@ public class RelatorioMovimentacaoBilhete extends Relatorio {
|
||||||
sb.append("AND e.empresa_id = :empresa_id ");
|
sb.append("AND e.empresa_id = :empresa_id ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (agencia_id != null) {
|
if (agencia_id != null && !agencia_id.equals(-1)) {
|
||||||
sb.append("AND c.puntoventa_id = :puntoventa_id ");
|
sb.append("AND c.puntoventa_id = :puntoventa_id ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ruta_id != null) {
|
if (ruta_id != null && !ruta_id.equals(-1)) {
|
||||||
sb.append("AND c.ruta_id = :ruta_id ");
|
sb.append("AND c.ruta_id = :ruta_id ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (origem_id != null) {
|
if (origem_id != null && !origem_id.equals(-1)) {
|
||||||
sb.append("AND ori.parada_id = :origem_id ");
|
sb.append("AND ori.parada_id = :origem_id ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (destino_id != null) {
|
if (destino_id != null && !destino_id.equals(-1)) {
|
||||||
sb.append("AND des.parada_id = :destino_id ");
|
sb.append("AND des.parada_id = :destino_id ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue