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
commit
12aa083bae
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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()) {
|
||||
|
||||
|
|
|
@ -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: ");
|
||||
|
|
Loading…
Reference in New Issue