fixes bug#AL-2771

Acerto retorno
master
Gleison da Cruz 2023-08-02 16:19:23 -03:00
parent 6b26645216
commit e21fb4ddc7
3 changed files with 7 additions and 4 deletions

View File

@ -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.11.2</version> <version>1.11.3</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>

View File

@ -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")) { if (parametros.get("IDAVOLTA").equals("1")) {
sql.append(" UNION ALL "); 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())); 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()) { while (rset.next()) {

View File

@ -214,8 +214,11 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
if (status.length() > 0) { if (status.length() > 0) {
status = status.substring(0, status.length() - 1); status = status.substring(0, status.length() - 1);
} else { } else {
if (!chkIdaVolta.isChecked()) //caso não tenha selecionado nada traz vendidos
status += "'" + IndStatusBoleto.V + "'"; status += "'" + IndStatusBoleto.V + "'";
} }
parametros.put("STATUS", status); parametros.put("STATUS", status);
filtro.append(" Empresa: "); filtro.append(" Empresa: ");