diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidosNovoLayout.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidosNovoLayout.java index 55bb7e24d..6556f5078 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidosNovoLayout.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBilhetesVendidosNovoLayout.java @@ -74,9 +74,9 @@ public class RelatorioBilhetesVendidosNovoLayout extends Relatorio { sql.append(" c.preciopagado as valorcontabil,"); sql.append(" est.icms as valoraliquiotaicms,"); sql.append(" (select sum(c.preciopagado) as preciopagado"); - sql.append(" from boleto e"); - sql.append(" where e.numoperacion = c.numoperacion) as preciopagado"); - sql.append(" from boleto c"); + sql.append(" from caja e"); + sql.append(" where e.numoperacion = c.numoperacion and e.fechorventa between :DATA_INICIAL AND :DATA_FINAL ) as preciopagado"); + sql.append(" from caja c"); sql.append(" left join aidf a on a.aidf_id = c.aidf_id"); sql.append(" left join aidf_especie ae on (a.aidfesp_id = ae.aidfesp_id)"); sql.append(" join empresa e on e.empresa_id = c.empresacorrida_id"); @@ -88,7 +88,7 @@ public class RelatorioBilhetesVendidosNovoLayout extends Relatorio { sql.append(" and ei.estado_id = est.estado_id"); sql.append(" where "); sql.append(" c.empresacorrida_id = :EMPRESA_ID "); - sql.append(" and c.fechorventa BETWEEN :DATA_INICIAL AND :DATA_FINAL "); + sql.append(" and c.fechorventa between :DATA_INICIAL AND :DATA_FINAL "); sql.append(" and c.activo = 1"); sql.append(" and ei.activo = 1"); if (parametros.get("NUMPUNTOVENTA") != null && !parametros.get("NUMPUNTOVENTA").equals("-1")) { @@ -112,8 +112,8 @@ public class RelatorioBilhetesVendidosNovoLayout extends Relatorio { NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString()); stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString())); - stmt.setTimestamp("DATA_INICIAL", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime())); - stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime())); + stmt.setDate("DATA_INICIAL", new java.sql.Date(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime())); + stmt.setDate("DATA_FINAL", new java.sql.Date(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime())); ResultSet rset = stmt.executeQuery(); lsDadosRelatorio = new ArrayList(); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBilhetesVendidosNovoLayout_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBilhetesVendidosNovoLayout_pt_BR.properties index f299de5a2..191f2c178 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBilhetesVendidosNovoLayout_pt_BR.properties +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBilhetesVendidosNovoLayout_pt_BR.properties @@ -22,5 +22,5 @@ label.dataVenda=Data Venda label.valorCancelado=Qtd. Cancec header.periodo=Período: header.tipoLinha=Tipo Linha: -header.estado=Estado +header.estado=Estado: label.codFiscal=Cod. Fiscal \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jasper index 6ca21e256..b160e2519 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jrxml index d01bacb9f..1fd38f289 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBilhetesVendidosNovoLayout.jrxml @@ -1,8 +1,8 @@ - - - + + + @@ -47,7 +47,7 @@ <band height="28"> <textField> - <reportElement uuid="e15d26de-6873-4576-b49b-8dc546b39dbe" x="142" y="2" width="416" height="20"/> + <reportElement x="142" y="2" width="416" height="20" uuid="e15d26de-6873-4576-b49b-8dc546b39dbe"/> <textElement textAlignment="Center"> <font size="12" isBold="true"/> </textElement> @@ -56,89 +56,89 @@ </band> - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -147,89 +147,89 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -238,86 +238,86 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -337,7 +337,7 @@ - +