Merge pull request 'fixes bug#AL-2771' (!239) from AL-2771 into master

Reviewed-on: adm/VentaBoletosAdm#239
Reviewed-by: Célio de Souza Ribeiro JR <celio@rjconsultores.com.br>
master 1.11.3
Gleison da Cruz 2023-08-02 19:22:29 +00:00
commit 12aa083bae
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 {
if (!chkIdaVolta.isChecked()) //caso não tenha selecionado nada traz vendidos
status += "'" + IndStatusBoleto.V + "'";
}
parametros.put("STATUS", status);
filtro.append(" Empresa: ");