diff --git a/pom.xml b/pom.xml index cfa82b2e7..83362b575 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores ventaboletosadm - 1.128.0 + 1.128.1 war diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java index 49a6dd4e7..470a15122 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasBilheteiro.java @@ -49,10 +49,15 @@ public class RelatorioVendasBilheteiro extends Relatorio { sql.append(" c.CORRIDA_ID SERVICO, "); sql.append(" c.IMPORTEPEDAGIO PEDAGIO," ); sql.append(" c.IMPORTETAXAEMBARQUE TX_EMBARQUE," ); - sql.append(" c.IMPORTEOUTROS OUTROS," ); + sql.append(" c.IMPORTEOUTROS OUTROS,"); + sql.append(" c.IMPORTESEGURO AS VALOR_SEGURO, "); sql.append(" c.PRECIOPAGADO TARIFA," ); sql.append(" (coalesce(c.PRECIOPAGADO,0)+(coalesce(c.IMPORTEPEDAGIO,0)+ coalesce(c.IMPORTETAXAEMBARQUE,0)+ coalesce(c.IMPORTESEGURO,0)+ coalesce(c.IMPORTEOUTROS,0))) TOTAL_BILHETE, " ); - sql.append(" cs.DESCCLASE CLASSE "); + sql.append(" cs.DESCCLASE CLASSE, "); + + sql.append(" fp.DESCPAGO as FORMA_PAGO, "); + sql.append(" r.ruta_id as NUM_LINHA, "); + sql.append(" r.DESCRUTA as DESC_LINHA "); sql.append(" from caja c "); sql.append(" join PUNTO_VENTA pv on c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID "); @@ -62,6 +67,11 @@ public class RelatorioVendasBilheteiro extends Relatorio { sql.append(" join CATEGORIA ct on ct.CATEGORIA_ID = c.CATEGORIA_ID "); sql.append(" join CLASE_SERVICIO cs on cs.CLASESERVICIO_ID = c.CLASESERVICIO_ID "); sql.append(" join MARCA m on m.marca_id = c.marca_id "); + + sql.append(" left join caja_formapago cfp on c.caja_id = cfp.caja_id and cfp.activo = 1 "); + sql.append(" left join forma_pago fp on cfp.formapago_id = fp.formapago_id and fp.activo = 1 "); + sql.append(" left join ruta r on r.ruta_id = c.ruta_id and r.activo = 1 "); + sql.append(" where "); sql.append(" m.EMPRESA_ID = :EMPRESA_ID "); sql.append(" and c.FECHORVENTA >= :DATA_INICIAL "); @@ -119,7 +129,10 @@ public class RelatorioVendasBilheteiro extends Relatorio { dataResult.put("SERVICO", rset.getBigDecimal("SERVICO")); dataResult.put("DATA_VIAGEM", rset.getDate("DATA_VIAGEM")); dataResult.put("CLASSE", rset.getString("CLASSE")); - + dataResult.put("FORMA_PAGO", rset.getString("FORMA_PAGO")); + dataResult.put("VALOR_SEGURO", rset.getBigDecimal("VALOR_SEGURO")); + dataResult.put("NUM_LINHA", rset.getString("NUM_LINHA")); + dataResult.put("DESC_LINHA", rset.getString("DESC_LINHA")); this.dados.add(dataResult); } diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper index 49666214f..272345dfe 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml index b01b08588..4017613af 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasBilheteiro.jrxml @@ -1,7 +1,7 @@ - + @@ -32,6 +32,10 @@ + + + + @@ -129,38 +133,38 @@ - + - + - + - + - + - + - + @@ -168,7 +172,7 @@ - + @@ -176,7 +180,7 @@ - + @@ -184,14 +188,14 @@ - + - + @@ -199,7 +203,7 @@ - + @@ -207,7 +211,7 @@ - + @@ -215,7 +219,7 @@ - + @@ -223,7 +227,7 @@ - + @@ -231,7 +235,7 @@ - + @@ -239,7 +243,7 @@ - + @@ -247,143 +251,203 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +