fixes bug#AL-2679
parent
dea416a3c8
commit
c9a4490947
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.5.2</version>
|
<version>1.5.3</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -298,7 +298,7 @@ public class RelatorioPassagensAGR extends Relatorio {
|
||||||
sql.append(" AND b.fechorventa BETWEEN :fecInicioVenda AND :fecFinalVenda ");
|
sql.append(" AND b.fechorventa BETWEEN :fecInicioVenda AND :fecFinalVenda ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!categoriaIds.isEmpty() || !categoriaIds.equals("Todas") ) {
|
if (!categoriaIds.isEmpty() && !categoriaIds.equals("Todas") ) {
|
||||||
sql.append(" AND b.categoria_id in ( "+categoriaIds+" ) ");
|
sql.append(" AND b.categoria_id in ( "+categoriaIds+" ) ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -306,7 +306,7 @@ public class RelatorioPassagensAGR extends Relatorio {
|
||||||
sql.append(" AND b.fechorviaje BETWEEN :fecInicioViagem AND :fecFinalViagem ");
|
sql.append(" AND b.fechorviaje BETWEEN :fecInicioViagem AND :fecFinalViagem ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empresa.isEmpty() || !empresa.equals("Todas")){
|
if (!empresa.isEmpty()){
|
||||||
sql.append(" AND b.empresacorrida_id =:empresa_id ");
|
sql.append(" AND b.empresacorrida_id =:empresa_id ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue