fixes bug #10363
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@77706 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
275260e654
commit
e0199c033d
|
@ -220,7 +220,7 @@ public class RelatorioMovimentosAtraso extends Relatorio {
|
||||||
sQuery.append("AND M.EMPRESA_ID = :empresaId ");
|
sQuery.append("AND M.EMPRESA_ID = :empresaId ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(puntoventaId != null) {
|
if(puntoventaId != null && puntoventaId != -1) {
|
||||||
sQuery.append("AND C.PUNTOVENTA_ID = :puntoventaId ");
|
sQuery.append("AND C.PUNTOVENTA_ID = :puntoventaId ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ public class RelatorioMovimentosAtraso extends Relatorio {
|
||||||
stmt.setInt("empresaId", empresaId);
|
stmt.setInt("empresaId", empresaId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(puntoventaId != null) {
|
if(puntoventaId != null && puntoventaId != -1) {
|
||||||
stmt.setInt("puntoventaId", puntoventaId);
|
stmt.setInt("puntoventaId", puntoventaId);
|
||||||
}
|
}
|
||||||
stmt.setDate("dataInicial", new java.sql.Date(dataInicial.getTime()));
|
stmt.setDate("dataInicial", new java.sql.Date(dataInicial.getTime()));
|
||||||
|
@ -287,7 +287,7 @@ public class RelatorioMovimentosAtraso extends Relatorio {
|
||||||
sQuery.append("AND PTE.EMPRESA_ID = :empresaId ");
|
sQuery.append("AND PTE.EMPRESA_ID = :empresaId ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(puntoventaId != null) {
|
if(puntoventaId != null && puntoventaId != -1) {
|
||||||
sQuery.append("AND PV.PUNTOVENTA_ID = :puntoventaId ");
|
sQuery.append("AND PV.PUNTOVENTA_ID = :puntoventaId ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ public class RelatorioMovimentosAtraso extends Relatorio {
|
||||||
stmt.setInt("empresaId", empresaId);
|
stmt.setInt("empresaId", empresaId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(puntoventaId != null) {
|
if(puntoventaId != null && puntoventaId != -1) {
|
||||||
stmt.setInt("puntoventaId", puntoventaId);
|
stmt.setInt("puntoventaId", puntoventaId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue