O Relatório de Vendas por Bilheteiro não retorna nada porque não existe nenhum registro no banco

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@59461 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2016-08-23 20:12:39 +00:00
parent 914a38732d
commit 9e7e761663
1 changed files with 1 additions and 5 deletions

View File

@ -56,10 +56,6 @@ public class RelatorioAgenciaFechamento extends Relatorio {
stmt.setInt("empresaId", Integer.parseInt(empresa)); stmt.setInt("empresaId", Integer.parseInt(empresa));
} }
if (puntoVenta != null && !puntoVenta.equals("-1")) {
stmt.setString("puntoVentaId", puntoVenta);
}
rset1 = stmt.executeQuery(); rset1 = stmt.executeQuery();
while (rset1.next()) { while (rset1.next()) {
@ -208,7 +204,7 @@ public class RelatorioAgenciaFechamento extends Relatorio {
sql.append(" WHERE c.TURNO_ID IS NOT NULL "); sql.append(" WHERE c.TURNO_ID IS NOT NULL ");
sql.append(" AND c.FECCORTE BETWEEN :de AND :ate "); sql.append(" AND c.FECCORTE BETWEEN :de AND :ate ");
if (puntoVenta != null && !puntoVenta.equals("-1")) { if (puntoVenta != null && !puntoVenta.equals("-1")) {
sql.append(" AND c.PUNTOVENTA_ID =:puntoVentaId "); sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVenta + ") ");
} }
sql.append(" AND c.TIPOVENTA_ID <> 6 "); sql.append(" AND c.TIPOVENTA_ID <> 6 ");
sql.append(" AND c.INDREIMPRESION = 0 "); sql.append(" AND c.INDREIMPRESION = 0 ");