fixes bug #8839
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@67537 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e17d837f02
commit
79c3f62f11
|
@ -41,7 +41,8 @@ public class RelatorioDescontos extends Relatorio {
|
||||||
NamedParameterStatement statement = new NamedParameterStatement(coneConnection, query);
|
NamedParameterStatement statement = new NamedParameterStatement(coneConnection, query);
|
||||||
statement.setTimestamp("fecVentaInicial", fecVentaInicial);
|
statement.setTimestamp("fecVentaInicial", fecVentaInicial);
|
||||||
statement.setTimestamp("fecVentaFinal", fecVentaFinal);
|
statement.setTimestamp("fecVentaFinal", fecVentaFinal);
|
||||||
if(idPuntoVenta != null) {
|
|
||||||
|
if(idPuntoVenta != null && idPuntoVenta != -1) {
|
||||||
statement.setInt("idPuntoVenta", idPuntoVenta);
|
statement.setInt("idPuntoVenta", idPuntoVenta);
|
||||||
}
|
}
|
||||||
if(codconvenio != null && !codconvenio.isEmpty()) {
|
if(codconvenio != null && !codconvenio.isEmpty()) {
|
||||||
|
@ -119,7 +120,7 @@ public class RelatorioDescontos extends Relatorio {
|
||||||
query +=" AND BOL.EMPRESACORRIDA_ID IN ( " + (String)parametros.get("EMPRESAIDS") + ")" ;
|
query +=" AND BOL.EMPRESACORRIDA_ID IN ( " + (String)parametros.get("EMPRESAIDS") + ")" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(idPuntoVenta != null) {
|
if(idPuntoVenta != null && idPuntoVenta != -1) {
|
||||||
query += " AND (BOL.PUNTOVENTA_ID = :idPuntoVenta) ";
|
query += " AND (BOL.PUNTOVENTA_ID = :idPuntoVenta) ";
|
||||||
}
|
}
|
||||||
if (codconvenio != null && !codconvenio.isEmpty()) {
|
if (codconvenio != null && !codconvenio.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue