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>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId>
<version>1.11.2</version>
<version>1.11.3</version>
<packaging>war</packaging>
<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")) {
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()) {

View File

@ -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: ");