diff --git a/pom.xml b/pom.xml index 84d940328..bb90e115e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores ventaboletosadm - 1.11.2 + 1.11.3 war diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java index 92aa6c67b..5b88e1b7d 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidos.java @@ -114,7 +114,7 @@ public class RelatorioBilhetesVendidos extends Relatorio { } - if (parametros.get("STATUS").toString().contains("C")) { + if (parametros.get("STATUS").toString().contains("C")||parametros.get("STATUS").toString().contains("V")) { if (parametros.get("IDAVOLTA").equals("1")) { sql.append(" UNION ALL "); } @@ -226,7 +226,7 @@ public class RelatorioBilhetesVendidos extends Relatorio { stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime())); } -; ResultSet rset = stmt.executeQuery(); + ResultSet rset = stmt.executeQuery(); while (rset.next()) { diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java index 59fa3eb90..0aee863f5 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java @@ -214,8 +214,11 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose if (status.length() > 0) { status = status.substring(0, status.length() - 1); } else { - status += "'" + IndStatusBoleto.V + "'"; + if (!chkIdaVolta.isChecked()) //caso não tenha selecionado nada traz vendidos + status += "'" + IndStatusBoleto.V + "'"; } + + parametros.put("STATUS", status); filtro.append(" Empresa: ");