wilian 2017-08-10 14:12:47 +00:00
parent de7bf1cf0a
commit a0c5f556c4
22 changed files with 2002 additions and 261 deletions

View File

@ -3,8 +3,8 @@ package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.Connection; import java.sql.Connection;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -38,6 +38,10 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
List<PuntoVenta> lsPuntoVenta = parametros.get("PUNTOVENTAS") == null ? new ArrayList<PuntoVenta>() : (ArrayList<PuntoVenta>) parametros.get("PUNTOVENTAS"); List<PuntoVenta> lsPuntoVenta = parametros.get("PUNTOVENTAS") == null ? new ArrayList<PuntoVenta>() : (ArrayList<PuntoVenta>) parametros.get("PUNTOVENTAS");
List<Estado> lsEstado = parametros.get("ESTADOS") == null ? new ArrayList<Estado>() : (ArrayList<Estado>) parametros.get("ESTADOS"); List<Estado> lsEstado = parametros.get("ESTADOS") == null ? new ArrayList<Estado>() : (ArrayList<Estado>) parametros.get("ESTADOS");
Integer empresaId = parametros.get("EMPRESA_ID") == null ? null : (Integer) parametros.get("EMPRESA_ID"); Integer empresaId = parametros.get("EMPRESA_ID") == null ? null : (Integer) parametros.get("EMPRESA_ID");
Date dataVendaInicial = parametros.get("dataVendaInicial") == null ? null : (Date) parametros.get("dataVendaInicial");
Date dataVendaFinal = parametros.get("dataVendaFinal") == null ? null : (Date) parametros.get("dataVendaFinal");
Date dataDevolucaoInicial = parametros.get("dataDevolucaoInicial") == null ? null : (Date) parametros.get("dataDevolucaoInicial");
Date dataDevolucaoFinal = parametros.get("dataDevolucaoFinal") == null ? null : (Date) parametros.get("dataDevolucaoFinal");
String puntoVentas = null; String puntoVentas = null;
for (PuntoVenta pv : lsPuntoVenta) { for (PuntoVenta pv : lsPuntoVenta) {
@ -57,14 +61,27 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
} }
} }
String sql = getSql(empresaId, puntoVentas, estados); String sql = getSql(empresaId, puntoVentas, estados, dataVendaInicial, dataVendaFinal, dataDevolucaoInicial, dataDevolucaoFinal);
log.debug(sql); log.debug(sql);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null; ResultSet rset = null;
stmt.setString("DATA_INICIO", DateUtil.getStringDate(((Timestamp) parametros.get("DATA_INICIO")), "dd/MM/yyyy HH:mm:ss")); if(dataVendaInicial != null) {
stmt.setString("DATA_FINAL", DateUtil.getStringDate(((Timestamp) parametros.get("DATA_FINAL")), "dd/MM/yyyy HH:mm:ss")); stmt.setString("dataVendaInicial", DateUtil.getStringDate(dataVendaInicial, "dd/MM/yyyy HH:mm"));
}
if(dataVendaFinal != null) {
stmt.setString("dataVendaFinal", DateUtil.getStringDate(dataVendaFinal, "dd/MM/yyyy HH:mm"));
}
if(dataDevolucaoInicial != null) {
stmt.setString("dataDevolucaoInicial", DateUtil.getStringDate(dataDevolucaoInicial, "dd/MM/yyyy HH:mm"));
}
if(dataDevolucaoFinal != null) {
stmt.setString("dataDevolucaoFinal", DateUtil.getStringDate(dataDevolucaoFinal, "dd/MM/yyyy HH:mm"));
}
rset = stmt.executeQuery(); rset = stmt.executeQuery();
@ -77,7 +94,10 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
db.setSerieSubSerie((String) rset.getObject("SERIE_SUBSERIE")); db.setSerieSubSerie((String) rset.getObject("SERIE_SUBSERIE"));
db.setFolio((String) rset.getObject("FOLIO")); db.setFolio((String) rset.getObject("FOLIO"));
db.setUf((String) rset.getObject("UF")); db.setUf((String) rset.getObject("UF"));
db.setEstado((String) rset.getObject("ESTADO"));
db.setEstadoId(rset.getInt("ESTADO_ID"));
db.setFechorVenta((String) rset.getObject("FECHOR_VENTA")); db.setFechorVenta((String) rset.getObject("FECHOR_VENTA"));
db.setFechorDevolucao((String) rset.getObject("FECHOR_DEVOLUCAO"));
db.setIcms((BigDecimal) rset.getObject("ICMS")); db.setIcms((BigDecimal) rset.getObject("ICMS"));
db.setPrecioBase((BigDecimal) rset.getObject("PRECIOBASE")); db.setPrecioBase((BigDecimal) rset.getObject("PRECIOBASE"));
db.setPrecioPagado((BigDecimal) rset.getObject("PRECIOPAGADO")); db.setPrecioPagado((BigDecimal) rset.getObject("PRECIOPAGADO"));
@ -85,11 +105,33 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
db.setEmpresa((String) rset.getObject("NOMB_EMPRESA")); db.setEmpresa((String) rset.getObject("NOMB_EMPRESA"));
db.setNumpuntoventa((String) rset.getObject("NUMPUNTOVENTA")); db.setNumpuntoventa((String) rset.getObject("NUMPUNTOVENTA"));
db.setNumpuntoventaOrigem((String) rset.getObject("NUMPUNTOVENTAORIGEM")); db.setNumpuntoventaOrigem((String) rset.getObject("NUMPUNTOVENTAORIGEM"));
db.setIsenta(rset.getInt("ISENTA") == 1);
db.setTotalBilhete(rset.getBigDecimal("TOTAL")); db.setTotalBilhete(rset.getBigDecimal("TOTAL"));
db.setValorContabil(db.getTotalBilhete());
db.setValorIcms(BigDecimal.ZERO);
db.setValorIsenta(BigDecimal.ZERO);
BigDecimal valorIcms = BigDecimal.ZERO; BigDecimal valorIcms = BigDecimal.ZERO;
valorIcms = db.getPrecioPagado().multiply(db.getIcms().divide(BigDecimal.valueOf(100))); valorIcms = db.getPrecioPagado().multiply(db.getIcms().divide(BigDecimal.valueOf(100)));
db.setValorIcms(valorIcms); if(db.isIsenta()) {
db.setValorIsenta(valorIcms);
} else {
db.setValorIcms(valorIcms);
}
db.setPorcMunicipal(rset.getObject("PORC_MUNICIPAL") == null ? BigDecimal.ZERO : (BigDecimal) rset.getObject("PORC_MUNICIPAL"));
db.setPorcEstadual(rset.getObject("PORC_ESTADUAL") == null ? BigDecimal.ZERO : (BigDecimal) rset.getObject("PORC_ESTADUAL"));
boolean isEstadual = rset.getInt("IS_ESTADUAL") == 1;
BigDecimal estornoMunicipal = BigDecimal.ZERO;
BigDecimal estornoEstadual = BigDecimal.ZERO;
if (isEstadual) {
estornoEstadual = valorIcms.multiply(db.getPorcEstadual().divide(BigDecimal.valueOf(100)));
} else {
estornoMunicipal = valorIcms.multiply(db.getPorcMunicipal().divide(BigDecimal.valueOf(100)));
}
db.setEstornoMunicipal(estornoMunicipal);
db.setEstornoEstadual(estornoEstadual);
lsDev.add(db); lsDev.add(db);
} }
@ -104,7 +146,7 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDev)); this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDev));
} }
private String getSql(Integer empresaId, String puntoVentas, String estados) { private String getSql(Integer empresaId, String puntoVentas, String estados, Date dataVendaInicial, Date dataVendaFinal, Date dataDevolucaoInicial, Date dataDevolucaoFinal) {
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append("SELECT COALESCE(AIDF.ACFISCAL,SUBSTR(R4.NUMSERIE20, -6, 7)) AS AIDF, "); sql.append("SELECT COALESCE(AIDF.ACFISCAL,SUBSTR(R4.NUMSERIE20, -6, 7)) AS AIDF, ");
@ -117,18 +159,25 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
sql.append(" E.EMPRESA_ID AS EMPRESA_ID, "); sql.append(" E.EMPRESA_ID AS EMPRESA_ID, ");
sql.append(" PTV.NUMPUNTOVENTA AS NUMPUNTOVENTA, "); sql.append(" PTV.NUMPUNTOVENTA AS NUMPUNTOVENTA, ");
sql.append(" PTVO.NUMPUNTOVENTA AS NUMPUNTOVENTAORIGEM, "); sql.append(" PTVO.NUMPUNTOVENTA AS NUMPUNTOVENTAORIGEM, ");
sql.append(" EST.NOMBESTADO AS ESTADO, ");
sql.append(" EST.CVEESTADO AS UF, "); sql.append(" EST.CVEESTADO AS UF, ");
sql.append(" NVL(EI.ICMS,0) AS ICMS, "); sql.append(" NVL(EST.ESTADO_ID,0) AS ESTADO_ID, ");
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_VENTA, "); sql.append(" NVL(EI.PORCREDBASEICMS,0) AS ICMS, ");
sql.append(" TO_CHAR(BORI.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_VENTA, ");
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_DEVOLUCAO, ");
sql.append(" (CASE WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN 1 ELSE 0 END) IS_ESTADUAL, ");
sql.append(" EI.PORCREDMUNICIPAL AS PORC_MUNICIPAL, ");
sql.append(" EI.PORCREDESTADUAL AS PORC_ESTADUAL, ");
sql.append(" (CASE WHEN NVL(ORI.REGIONMETROPOLITANA_ID ,-1) = NVL(DES.REGIONMETROPOLITANA_ID,-2) THEN 1 ELSE 0 END) as ISENTA, ");
sql.append(" NVL(B.PRECIOPAGADO,0) + NVL(B.IMPORTEOUTROS,0) + NVL(B.IMPORTEPEDAGIO,0) + NVL(B.IMPORTESEGURO,0) + NVL(B.IMPORTETAXAEMBARQUE,0) AS TOTAL "); sql.append(" NVL(B.PRECIOPAGADO,0) + NVL(B.IMPORTEOUTROS,0) + NVL(B.IMPORTEPEDAGIO,0) + NVL(B.IMPORTESEGURO,0) + NVL(B.IMPORTETAXAEMBARQUE,0) AS TOTAL ");
sql.append("FROM BOLETO B "); sql.append("FROM BOLETO B ");
sql.append("INNER JOIN MARCA M ON M.MARCA_ID = B.MARCA_ID AND M.ACTIVO = 1 "); sql.append("INNER JOIN MARCA M ON M.MARCA_ID = B.MARCA_ID AND M.ACTIVO = 1 ");
sql.append("INNER JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID "); sql.append("INNER JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID ");
sql.append("INNER JOIN PUNTO_VENTA PTV ON PTV.PUNTOVENTA_ID = B.PUNTOVENTA_ID "); sql.append("INNER JOIN PUNTO_VENTA PTV ON PTV.PUNTOVENTA_ID = B.PUNTOVENTA_ID ");
sql.append("INNER JOIN PARADA ORIGEM ON (B.ORIGEN_ID = ORIGEM.PARADA_ID ) "); sql.append("INNER JOIN PARADA ORI ON (B.ORIGEN_ID = ORI.PARADA_ID ) ");
sql.append("INNER JOIN PARADA DESTINO ON (B.DESTINO_ID = DESTINO.PARADA_ID ) "); sql.append("INNER JOIN PARADA DES ON (B.DESTINO_ID = DES.PARADA_ID ) ");
sql.append("INNER JOIN CIUDAD CO ON (CO.CIUDAD_ID = ORIGEM.CIUDAD_ID ) "); sql.append("INNER JOIN CIUDAD CO ON (CO.CIUDAD_ID = ORI.CIUDAD_ID ) ");
sql.append("INNER JOIN CIUDAD CD ON (CD.CIUDAD_ID = DESTINO.CIUDAD_ID ) "); sql.append("INNER JOIN CIUDAD CD ON (CD.CIUDAD_ID = DES.CIUDAD_ID ) ");
sql.append("INNER JOIN ESTADO EST ON EST.ESTADO_ID = CO.ESTADO_ID "); sql.append("INNER JOIN ESTADO EST ON EST.ESTADO_ID = CO.ESTADO_ID ");
sql.append("LEFT JOIN FISCAL_R4 R4 ON R4.BOLETO_ID = B.BOLETOORIGINAL_ID "); sql.append("LEFT JOIN FISCAL_R4 R4 ON R4.BOLETO_ID = B.BOLETOORIGINAL_ID ");
sql.append("LEFT JOIN PUNTO_VENTA PTVO ON PTVO.PUNTOVENTA_ID = B.PTOVTAVENTA_ID "); sql.append("LEFT JOIN PUNTO_VENTA PTVO ON PTVO.PUNTOVENTA_ID = B.PTOVTAVENTA_ID ");
@ -136,14 +185,32 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
sql.append(" AND EI.EMPRESA_ID = M.EMPRESA_ID "); sql.append(" AND EI.EMPRESA_ID = M.EMPRESA_ID ");
sql.append(" AND EI.ACTIVO = 1 "); sql.append(" AND EI.ACTIVO = 1 ");
sql.append("LEFT JOIN AIDF AIDF ON AIDF.AIDF_ID = B.AIDF_ID "); sql.append("LEFT JOIN AIDF AIDF ON AIDF.AIDF_ID = B.AIDF_ID ");
sql.append("WHERE B.MOTIVOCANCELACION_ID IN (32,10,99) "); sql.append("LEFT JOIN BOLETO BORI ON BORI.BOLETO_ID = B.BOLETOORIGINAL_ID ");
sql.append("WHERE B.MOTIVOCANCELACION_ID IN (31,32,10,37,99,36) ");
sql.append("AND B.INDSTATUSBOLETO = 'C' "); sql.append("AND B.INDSTATUSBOLETO = 'C' ");
sql.append("AND B.FECHORVENTA BETWEEN TO_DATE(:DATA_INICIO,'DD/MM/YYYY HH24:MI:SS') AND TO_DATE(:DATA_FINAL,'DD/MM/YYYY HH24:MI:SS') "); sql.append("AND B.INDCANCELACION = 1 ");
if(dataVendaInicial != null) {
sql.append("AND BORI.FECHORVENTA >= TO_DATE(:dataVendaInicial,'DD/MM/YYYY HH24:MI') ");
}
if(dataVendaFinal != null) {
sql.append("AND BORI.FECHORVENTA <= TO_DATE(:dataVendaFinal,'DD/MM/YYYY HH24:MI') ");
}
if(dataDevolucaoInicial != null) {
sql.append("AND B.FECHORVENTA >= TO_DATE(:dataDevolucaoInicial,'DD/MM/YYYY HH24:MI') ");
}
if(dataDevolucaoFinal != null) {
sql.append("AND B.FECHORVENTA <= TO_DATE(:dataDevolucaoFinal,'DD/MM/YYYY HH24:MI') ");
}
sql.append("AND B.CATEGORIA_ID NOT IN (SELECT VALORCONSTANTE FROM CONSTANTE WHERE NOMBCONSTANTE = 'GRATUIDADE_CRIANCA') "); sql.append("AND B.CATEGORIA_ID NOT IN (SELECT VALORCONSTANTE FROM CONSTANTE WHERE NOMBCONSTANTE = 'GRATUIDADE_CRIANCA') ");
sql.append(estados == null ? "" : "AND EST.ESTADO_ID IN (" + estados + ") "); sql.append(estados == null ? "" : "AND EST.ESTADO_ID IN (" + estados + ") ");
sql.append(puntoVentas == null ? "" : "AND PTV.PUNTOVENTA_ID IN (" + puntoVentas + ") "); sql.append(puntoVentas == null ? "" : "AND PTV.PUNTOVENTA_ID IN (" + puntoVentas + ") ");
sql.append(empresaId == null ? "" : "AND E.EMPRESA_ID IN (" + empresaId + ") "); sql.append(empresaId == null ? "" : "AND E.EMPRESA_ID IN (" + empresaId + ") ");
sql.append("ORDER BY NOMB_EMPRESA, FECHOR_VENTA, UF"); sql.append("ORDER BY NOMB_EMPRESA, ESTADO, UF, FECHOR_VENTA, NUMFOLIOSISTEMA");
return sql.toString(); return sql.toString();
} }

View File

@ -3,8 +3,8 @@ package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.Connection; import java.sql.Connection;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -38,6 +38,10 @@ public class RelatorioDevolucaoBilhetesConsolidado extends Relatorio {
List<PuntoVenta> lsPuntoVenta = parametros.get("PUNTOVENTAS") == null ? new ArrayList<PuntoVenta>() : (ArrayList<PuntoVenta>) parametros.get("PUNTOVENTAS"); List<PuntoVenta> lsPuntoVenta = parametros.get("PUNTOVENTAS") == null ? new ArrayList<PuntoVenta>() : (ArrayList<PuntoVenta>) parametros.get("PUNTOVENTAS");
List<Estado> lsEstado = parametros.get("ESTADOS") == null ? new ArrayList<Estado>() : (ArrayList<Estado>) parametros.get("ESTADOS"); List<Estado> lsEstado = parametros.get("ESTADOS") == null ? new ArrayList<Estado>() : (ArrayList<Estado>) parametros.get("ESTADOS");
Integer empresaId = parametros.get("EMPRESA_ID") == null ? null : (Integer) parametros.get("EMPRESA_ID"); Integer empresaId = parametros.get("EMPRESA_ID") == null ? null : (Integer) parametros.get("EMPRESA_ID");
Date dataVendaInicial = parametros.get("dataVendaInicial") == null ? null : (Date) parametros.get("dataVendaInicial");
Date dataVendaFinal = parametros.get("dataVendaFinal") == null ? null : (Date) parametros.get("dataVendaFinal");
Date dataDevolucaoInicial = parametros.get("dataDevolucaoInicial") == null ? null : (Date) parametros.get("dataDevolucaoInicial");
Date dataDevolucaoFinal = parametros.get("dataDevolucaoFinal") == null ? null : (Date) parametros.get("dataDevolucaoFinal");
String puntoVentas = null; String puntoVentas = null;
for (PuntoVenta pv : lsPuntoVenta) { for (PuntoVenta pv : lsPuntoVenta) {
@ -57,14 +61,27 @@ public class RelatorioDevolucaoBilhetesConsolidado extends Relatorio {
} }
} }
String sql = getSql(empresaId, puntoVentas, estados); String sql = getSql(empresaId, puntoVentas, estados, dataVendaInicial, dataVendaFinal, dataDevolucaoInicial, dataDevolucaoFinal);
log.debug(sql); log.debug(sql);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null; ResultSet rset = null;
stmt.setString("DATA_INICIO", DateUtil.getStringDate(((Timestamp) parametros.get("DATA_INICIO")), "dd/MM/yyyy HH:mm:ss")); if(dataVendaInicial != null) {
stmt.setString("DATA_FINAL", DateUtil.getStringDate(((Timestamp) parametros.get("DATA_FINAL")), "dd/MM/yyyy HH:mm:ss")); stmt.setString("dataVendaInicial", DateUtil.getStringDate(dataVendaInicial, "dd/MM/yyyy HH:mm"));
}
if(dataVendaFinal != null) {
stmt.setString("dataVendaFinal", DateUtil.getStringDate(dataVendaFinal, "dd/MM/yyyy HH:mm"));
}
if(dataDevolucaoInicial != null) {
stmt.setString("dataDevolucaoInicial", DateUtil.getStringDate(dataDevolucaoInicial, "dd/MM/yyyy HH:mm"));
}
if(dataDevolucaoFinal != null) {
stmt.setString("dataDevolucaoFinal", DateUtil.getStringDate(dataDevolucaoFinal, "dd/MM/yyyy HH:mm"));
}
rset = stmt.executeQuery(); rset = stmt.executeQuery();
@ -100,7 +117,7 @@ public class RelatorioDevolucaoBilhetesConsolidado extends Relatorio {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDev)); this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDev));
} }
private String getSql(Integer empresaId, String puntoVentas, String estados) { private String getSql(Integer empresaId, String puntoVentas, String estados, Date dataVendaInicial, Date dataVendaFinal, Date dataDevolucaoInicial, Date dataDevolucaoFinal) {
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append("SELECT E.NOMBEMPRESA AS NOMB_EMPRESA, "); sql.append("SELECT E.NOMBEMPRESA AS NOMB_EMPRESA, ");
@ -108,7 +125,7 @@ public class RelatorioDevolucaoBilhetesConsolidado extends Relatorio {
sql.append(" PTV.NUMPUNTOVENTA AS NUMPUNTOVENTA, "); sql.append(" PTV.NUMPUNTOVENTA AS NUMPUNTOVENTA, ");
sql.append(" PTV.NOMBPUNTOVENTA AS NOMBPUNTOVENTA, "); sql.append(" PTV.NOMBPUNTOVENTA AS NOMBPUNTOVENTA, ");
sql.append(" NVL(EI.ICMS,0) AS ICMS, "); sql.append(" NVL(EI.ICMS,0) AS ICMS, ");
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_VENTA, "); sql.append(" TO_CHAR(BORI.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_VENTA, ");
sql.append(" SUM(NVL(B.PRECIOBASE,0)) AS PRECIOBASE, "); sql.append(" SUM(NVL(B.PRECIOBASE,0)) AS PRECIOBASE, ");
sql.append(" SUM(NVL(B.PRECIOPAGADO,0)) AS PRECIOPAGADO, "); sql.append(" SUM(NVL(B.PRECIOPAGADO,0)) AS PRECIOPAGADO, ");
sql.append(" SUM(NVL(B.PRECIOPAGADO,0) + NVL(B.IMPORTEOUTROS,0) + NVL(B.IMPORTEPEDAGIO,0) + NVL(B.IMPORTESEGURO,0) + NVL(B.IMPORTETAXAEMBARQUE,0)) AS TOTAL, "); sql.append(" SUM(NVL(B.PRECIOPAGADO,0) + NVL(B.IMPORTEOUTROS,0) + NVL(B.IMPORTEPEDAGIO,0) + NVL(B.IMPORTESEGURO,0) + NVL(B.IMPORTETAXAEMBARQUE,0)) AS TOTAL, ");
@ -127,9 +144,27 @@ public class RelatorioDevolucaoBilhetesConsolidado extends Relatorio {
sql.append(" AND EI.EMPRESA_ID = M.EMPRESA_ID "); sql.append(" AND EI.EMPRESA_ID = M.EMPRESA_ID ");
sql.append(" AND EI.ACTIVO = 1 "); sql.append(" AND EI.ACTIVO = 1 ");
sql.append("LEFT JOIN AIDF AIDF ON AIDF.AIDF_ID = B.AIDF_ID "); sql.append("LEFT JOIN AIDF AIDF ON AIDF.AIDF_ID = B.AIDF_ID ");
sql.append("WHERE B.MOTIVOCANCELACION_ID IN (32,10,99) "); sql.append("LEFT JOIN BOLETO BORI ON BORI.BOLETO_ID = B.BOLETOORIGINAL_ID ");
sql.append("WHERE B.MOTIVOCANCELACION_ID IN (31,32,10,37,99,36) ");
sql.append("AND B.INDSTATUSBOLETO = 'C' "); sql.append("AND B.INDSTATUSBOLETO = 'C' ");
sql.append("AND B.FECHORVENTA BETWEEN TO_DATE(:DATA_INICIO,'DD/MM/YYYY HH24:MI:SS') AND TO_DATE(:DATA_FINAL,'DD/MM/YYYY HH24:MI:SS') "); sql.append("AND B.INDCANCELACION = 1 ");
if(dataVendaInicial != null) {
sql.append("AND BORI.FECHORVENTA >= TO_DATE(:dataVendaInicial,'DD/MM/YYYY HH24:MI') ");
}
if(dataVendaFinal != null) {
sql.append("AND BORI.FECHORVENTA <= TO_DATE(:dataVendaFinal,'DD/MM/YYYY HH24:MI') ");
}
if(dataDevolucaoInicial != null) {
sql.append("AND B.FECHORVENTA >= TO_DATE(:dataDevolucaoInicial,'DD/MM/YYYY HH24:MI') ");
}
if(dataDevolucaoFinal != null) {
sql.append("AND B.FECHORVENTA <= TO_DATE(:dataDevolucaoFinal,'DD/MM/YYYY HH24:MI') ");
}
sql.append("AND B.CATEGORIA_ID NOT IN (SELECT VALORCONSTANTE FROM CONSTANTE WHERE NOMBCONSTANTE = 'GRATUIDADE_CRIANCA') "); sql.append("AND B.CATEGORIA_ID NOT IN (SELECT VALORCONSTANTE FROM CONSTANTE WHERE NOMBCONSTANTE = 'GRATUIDADE_CRIANCA') ");
sql.append(estados == null ? "" : "AND EST.ESTADO_ID IN (" + estados + ") "); sql.append(estados == null ? "" : "AND EST.ESTADO_ID IN (" + estados + ") ");
sql.append(puntoVentas == null ? "" : "AND PTV.PUNTOVENTA_ID IN (" + puntoVentas + ") "); sql.append(puntoVentas == null ? "" : "AND PTV.PUNTOVENTA_ID IN (" + puntoVentas + ") ");

View File

@ -0,0 +1,175 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DevolucaoBilhetes;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioDevolucaoBilhetesFinanceiro extends Relatorio {
private static Logger log = Logger.getLogger(RelatorioDevolucaoBilhetesFinanceiro.class);
public RelatorioDevolucaoBilhetesFinanceiro(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new DataSource(this) {
@SuppressWarnings("unchecked")
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
List<PuntoVenta> lsPuntoVenta = parametros.get("PUNTOVENTAS") == null ? new ArrayList<PuntoVenta>() : (ArrayList<PuntoVenta>) parametros.get("PUNTOVENTAS");
List<Estado> lsEstado = parametros.get("ESTADOS") == null ? new ArrayList<Estado>() : (ArrayList<Estado>) parametros.get("ESTADOS");
Integer empresaId = parametros.get("EMPRESA_ID") == null ? null : (Integer) parametros.get("EMPRESA_ID");
Date dataVendaInicial = parametros.get("dataVendaInicial") == null ? null : (Date) parametros.get("dataVendaInicial");
Date dataVendaFinal = parametros.get("dataVendaFinal") == null ? null : (Date) parametros.get("dataVendaFinal");
Date dataDevolucaoInicial = parametros.get("dataDevolucaoInicial") == null ? null : (Date) parametros.get("dataDevolucaoInicial");
Date dataDevolucaoFinal = parametros.get("dataDevolucaoFinal") == null ? null : (Date) parametros.get("dataDevolucaoFinal");
String puntoVentas = null;
for (PuntoVenta pv : lsPuntoVenta) {
if (lsPuntoVenta.indexOf(pv) == 0) {
puntoVentas = "" + pv.getPuntoventaId();
} else {
puntoVentas += ", " + pv.getPuntoventaId();
}
}
String estados = null;
for (Estado e : lsEstado) {
if (lsEstado.indexOf(e) == 0) {
estados = "" + e.getEstadoId();
} else {
estados += ", " + e.getEstadoId();
}
}
String sql = getSql(empresaId, puntoVentas, estados, dataVendaInicial, dataVendaFinal, dataDevolucaoInicial, dataDevolucaoFinal);
log.debug(sql);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null;
if(dataVendaInicial != null) {
stmt.setString("dataVendaInicial", DateUtil.getStringDate(dataVendaInicial, "dd/MM/yyyy HH:mm"));
}
if(dataVendaFinal != null) {
stmt.setString("dataVendaFinal", DateUtil.getStringDate(dataVendaFinal, "dd/MM/yyyy HH:mm"));
}
if(dataDevolucaoInicial != null) {
stmt.setString("dataDevolucaoInicial", DateUtil.getStringDate(dataDevolucaoInicial, "dd/MM/yyyy HH:mm"));
}
if(dataDevolucaoFinal != null) {
stmt.setString("dataDevolucaoFinal", DateUtil.getStringDate(dataDevolucaoFinal, "dd/MM/yyyy HH:mm"));
}
rset = stmt.executeQuery();
List<DevolucaoBilhetes> lsDev = new ArrayList<DevolucaoBilhetes>();
while (rset.next()) {
DevolucaoBilhetes db = new DevolucaoBilhetes();
db.setNumFolioSistema((String) rset.getObject("NUMFOLIOSISTEMA"));
db.setFolio((String) rset.getObject("FOLIO"));
db.setFechorVenta((String) rset.getObject("FECHOR_VENTA"));
db.setFechorDevolucao((String) rset.getObject("FECHOR_DEVOLUCAO"));
db.setEmpresaId(rset.getObject("EMPRESA_ID") == null ? null : ((BigDecimal) rset.getObject("EMPRESA_ID")).intValue());
db.setEmpresa((String) rset.getObject("NOMB_EMPRESA"));
db.setNombpuntoventa((String) rset.getObject("NOMBPUNTOVENTA"));
db.setNombpuntoventaOrigem((String) rset.getObject("NOMBPUNTOVENTARIGEM"));
db.setDescorigem((String) rset.getObject("DESCORIGEM"));
db.setDescdestino((String) rset.getObject("DESCDESTINO"));
db.setCveusuario((String) rset.getObject("CVEUSUARIO"));
db.setTotalBilhete(rset.getBigDecimal("TOTAL"));
lsDev.add(db);
}
setLsDadosRelatorio(lsDev);
}
});
}
public void setLsDadosRelatorio(List<DevolucaoBilhetes> lsDev) {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDev));
}
private String getSql(Integer empresaId, String puntoVentas, String estados, Date dataVendaInicial, Date dataVendaFinal, Date dataDevolucaoInicial, Date dataDevolucaoFinal) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT E.NOMBEMPRESA AS NOMB_EMPRESA, ");
sql.append(" E.EMPRESA_ID AS EMPRESA_ID, ");
sql.append(" PTV.NOMBPUNTOVENTA AS NOMBPUNTOVENTA, ");
sql.append(" PTVO.NOMBPUNTOVENTA AS NOMBPUNTOVENTARIGEM, ");
sql.append(" ORI.DESCPARADA AS DESCORIGEM, ");
sql.append(" DES.DESCPARADA AS DESCDESTINO, ");
sql.append(" B.NUMFOLIOSISTEMA AS NUMFOLIOSISTEMA, ");
sql.append(" B.NUMFOLIOPREIMPRESO AS FOLIO, ");
sql.append(" U.CVEUSUARIO AS CVEUSUARIO, ");
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_DEVOLUCAO, ");
sql.append(" TO_CHAR(BORI.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_VENTA, ");
sql.append(" NVL(B.PRECIOPAGADO,0) + NVL(B.IMPORTEOUTROS,0) + NVL(B.IMPORTEPEDAGIO,0) + NVL(B.IMPORTESEGURO,0) + NVL(B.IMPORTETAXAEMBARQUE,0) AS TOTAL ");
sql.append("FROM BOLETO B ");
sql.append("INNER JOIN MARCA M ON M.MARCA_ID = B.MARCA_ID AND M.ACTIVO = 1 ");
sql.append("INNER JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID ");
sql.append("INNER JOIN PUNTO_VENTA PTV ON PTV.PUNTOVENTA_ID = B.PUNTOVENTA_ID ");
sql.append("INNER JOIN PARADA ORI ON (B.ORIGEN_ID = ORI.PARADA_ID ) ");
sql.append("INNER JOIN PARADA DES ON (B.DESTINO_ID = DES.PARADA_ID ) ");
sql.append("LEFT JOIN PUNTO_VENTA PTVO ON PTVO.PUNTOVENTA_ID = B.PTOVTAVENTA_ID ");
sql.append("LEFT JOIN BOLETO BORI ON BORI.BOLETO_ID = B.BOLETOORIGINAL_ID ");
sql.append("JOIN USUARIO U ON U.USUARIO_ID = B.USUARIO_ID ");
sql.append("WHERE B.MOTIVOCANCELACION_ID IN (31,32,10,37,99,36) ");
sql.append("AND B.INDSTATUSBOLETO = 'C' ");
sql.append("AND B.INDCANCELACION = 1 ");
if(dataVendaInicial != null) {
sql.append("AND BORI.FECHORVENTA >= TO_DATE(:dataVendaInicial,'DD/MM/YYYY HH24:MI') ");
}
if(dataVendaFinal != null) {
sql.append("AND BORI.FECHORVENTA <= TO_DATE(:dataVendaFinal,'DD/MM/YYYY HH24:MI') ");
}
if(dataDevolucaoInicial != null) {
sql.append("AND B.FECHORVENTA >= TO_DATE(:dataDevolucaoInicial,'DD/MM/YYYY HH24:MI') ");
}
if(dataDevolucaoFinal != null) {
sql.append("AND B.FECHORVENTA <= TO_DATE(:dataDevolucaoFinal,'DD/MM/YYYY HH24:MI') ");
}
sql.append("AND B.CATEGORIA_ID NOT IN (SELECT VALORCONSTANTE FROM CONSTANTE WHERE NOMBCONSTANTE = 'GRATUIDADE_CRIANCA') ");
sql.append(estados == null ? "" : "AND EST.ESTADO_ID IN (" + estados + ") ");
sql.append(puntoVentas == null ? "" : "AND PTV.PUNTOVENTA_ID IN (" + puntoVentas + ") ");
sql.append(empresaId == null ? "" : "AND E.EMPRESA_ID IN (" + empresaId + ") ");
sql.append("ORDER BY NOMB_EMPRESA, FECHOR_VENTA");
return sql.toString();
}
@Override
protected void processaParametros() throws Exception {
}
}

View File

@ -5,6 +5,7 @@ msg.noData=N
label.titulo=Relatório de Devolução de Bilhetes Consolidado label.titulo=Relatório de Devolução de Bilhetes Consolidado
label.periodo=Período: label.periodo=Período:
label.ate=até label.ate=até
label.de=de
label.filtros=Fitros: label.filtros=Fitros:
label.aidf=AIDF(Bilhetes Manuais) label.aidf=AIDF(Bilhetes Manuais)
label.serieSubs=Série/Subs.(ECF) label.serieSubs=Série/Subs.(ECF)
@ -18,4 +19,8 @@ label.total=Total
label.qtdeBilhetes=Quantidade de Bilhetes label.qtdeBilhetes=Quantidade de Bilhetes
label.totalBilhete=Total Bilhete label.totalBilhete=Total Bilhete
label.numpuntoventa=Nº Agência label.numpuntoventa=Nº Agência
label.nombpuntoventa=Agência label.nombpuntoventa=Agência
label.periodoVenda=Data Venda:
label.periodoDevolucao=Data Devolução:
label.dataHora=Emitido em:
label.impressorPor=Emitido Por:

View File

@ -5,6 +5,7 @@ msg.noData=N
label.titulo=Relatório de Devolução de Bilhetes Consolidado label.titulo=Relatório de Devolução de Bilhetes Consolidado
label.periodo=Período: label.periodo=Período:
label.ate=até label.ate=até
label.de=de
label.filtros=Fitros: label.filtros=Fitros:
label.aidf=AIDF(Bilhetes Manuais) label.aidf=AIDF(Bilhetes Manuais)
label.serieSubs=Série/Subs.(ECF) label.serieSubs=Série/Subs.(ECF)
@ -18,4 +19,8 @@ label.total=Total
label.qtdeBilhetes=Quantidade de Bilhetes label.qtdeBilhetes=Quantidade de Bilhetes
label.totalBilhete=Total Bilhete label.totalBilhete=Total Bilhete
label.numpuntoventa=Nº Agência label.numpuntoventa=Nº Agência
label.nombpuntoventa=Agência label.nombpuntoventa=Agência
label.periodoVenda=Data Venda:
label.periodoDevolucao=Data Devolução:
label.dataHora=Emitido em:
label.impressorPor=Emitido Por:

View File

@ -0,0 +1,26 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#labels
label.titulo=Relatório de Devolução de Bilhetes - Financeiro
label.periodo=Período
label.ate=até
label.de=de
label.filtros=Fitros:
label.pagina=Página:
label.periodoVenda=Data Venda:
label.periodoDevolucao=Data Devolução:
label.dataHora=Emitido em:
label.impressorPor=Emitido Por:
label.total=Total
label.qtdeBilhetes=Quantidade de Bilhetes
label.nombpuntoventa=Ag. Emissão
label.descorigem=Origem
label.descdestino=Destino
label.fechorVenta=Dt Emissão
label.numeroBilhete=Nº Bilhete
label.numero=Número
label.totalBilhete=Total Bilhete
label.fechorDevolucao=Dt Devolução
label.nombpuntoventa=Ag. Devolução
label.cveusuario=Bilheteiro

View File

@ -0,0 +1,26 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#labels
label.titulo=Relatório de Devolução de Bilhetes - Financeiro
label.periodo=Período
label.ate=até
label.de=de
label.filtros=Fitros:
label.pagina=Página:
label.periodoVenda=Data Venda:
label.periodoDevolucao=Data Devolução:
label.dataHora=Emitido em:
label.impressorPor=Emitido Por:
label.total=Total
label.qtdeBilhetes=Quantidade de Bilhetes
label.nombpuntoventa=Ag. Emissão
label.descorigem=Origem
label.descdestino=Destino
label.fechorVenta=Dt Emissão
label.numeroBilhete=Nº Bilhete
label.numero=Número
label.totalBilhete=Total Bilhete
label.fechorDevolucao=Dt Devolução
label.nombpuntoventa=Ag. Devolução
label.cveusuario=Bilheteiro

View File

@ -2,9 +2,10 @@
msg.noData=Não foi possivel obter dados com os parâmetros informados. msg.noData=Não foi possivel obter dados com os parâmetros informados.
#labels #labels
label.titulo=Relatório de Devolução de Bilhetes label.titulo=Relatório de Devolução de Bilhetes - Fiscal
label.periodo=Período: label.periodo=Período
label.ate=até label.ate=até
label.de=de
label.filtros=Fitros: label.filtros=Fitros:
label.aidf=AIDF(Bilhetes Manuais) label.aidf=AIDF(Bilhetes Manuais)
label.serieSubs=Série/Subs.(ECF) label.serieSubs=Série/Subs.(ECF)
@ -20,4 +21,14 @@ label.totalBilhete=Total Bilhete
label.numeroBilhete=Nº Bilhete label.numeroBilhete=Nº Bilhete
label.numpuntoventa=Nº Agência label.numpuntoventa=Nº Agência
label.uf=UF label.uf=UF
label.numpuntoventaOrigem=Nº Agência Origem label.numpuntoventaOrigem=Nº Agência Origem
label.periodoVenda=Data Venda:
label.periodoDevolucao=Data Devolução:
label.dataHora=Emitido em:
label.impressorPor=Emitido Por:
label.isenta=Isenta
label.outras=Outras
label.fechorDevolucao=Dt Devolução
label.impEstornarInterestadual=Imposto a Estornar Interestadual
label.impEstornarIntermunicipal=Imposto a Estornar Intermunicipal
label.impEstornarTotal=Imposto a Estornar Total

View File

@ -2,9 +2,10 @@
msg.noData=Não foi possivel obter dados com os parâmetros informados. msg.noData=Não foi possivel obter dados com os parâmetros informados.
#labels #labels
label.titulo=Relatório de Devolução de Bilhetes label.titulo=Relatório de Devolução de Bilhetes - Fiscal
label.periodo=Período: label.periodo=Período
label.ate=até label.ate=até
label.de=de
label.filtros=Fitros: label.filtros=Fitros:
label.aidf=AIDF(Bilhetes Manuais) label.aidf=AIDF(Bilhetes Manuais)
label.serieSubs=Série/Subs.(ECF) label.serieSubs=Série/Subs.(ECF)
@ -20,4 +21,14 @@ label.totalBilhete=Total Bilhete
label.numeroBilhete=Nº Bilhete label.numeroBilhete=Nº Bilhete
label.numpuntoventa=Nº Agência label.numpuntoventa=Nº Agência
label.uf=UF label.uf=UF
label.numpuntoventaOrigem=Nº Agência Origem label.numpuntoventaOrigem=Nº Agência Origem
label.periodoVenda=Data Venda:
label.periodoDevolucao=Data Devolução:
label.dataHora=Emitido em:
label.impressorPor=Emitido Por:
label.isenta=Isenta
label.outras=Outras
label.fechorDevolucao=Dt Devolução
label.impEstornarInterestadual=Imposto a Estornar Interestadual
label.impEstornarIntermunicipal=Imposto a Estornar Intermunicipal
label.impEstornarTotal=Imposto a Estornar Total

View File

@ -2,7 +2,7 @@
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioDevolucaoBilhetes" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2"> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioDevolucaoBilhetes" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/> <property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="138"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table"> <style name="table">
<box> <box>
@ -24,13 +24,15 @@
<pen lineWidth="0.5" lineColor="#000000"/> <pen lineWidth="0.5" lineColor="#000000"/>
</box> </box>
</style> </style>
<parameter name="DATA_INICIO" class="java.util.Date"/> <parameter name="dataVendaInicial" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/> <parameter name="dataVendaFinal" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/> <parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/> <parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/> <parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/> <parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/> <parameter name="TIPO_DATA" class="java.lang.Integer"/>
<parameter name="dataDevolucaoInicial" class="java.util.Date"/>
<parameter name="dataDevolucaoFinal" class="java.util.Date"/>
<queryString> <queryString>
<![CDATA[]]> <![CDATA[]]>
</queryString> </queryString>
@ -41,7 +43,6 @@
<field name="precioPagado" class="java.math.BigDecimal"/> <field name="precioPagado" class="java.math.BigDecimal"/>
<field name="precioBase" class="java.math.BigDecimal"/> <field name="precioBase" class="java.math.BigDecimal"/>
<field name="estadoId" class="java.lang.Integer"/> <field name="estadoId" class="java.lang.Integer"/>
<field name="estado" class="java.lang.String"/>
<field name="uf" class="java.lang.String"/> <field name="uf" class="java.lang.String"/>
<field name="fechorVenta" class="java.lang.String"/> <field name="fechorVenta" class="java.lang.String"/>
<field name="icms" class="java.math.BigDecimal"/> <field name="icms" class="java.math.BigDecimal"/>
@ -55,6 +56,11 @@
<field name="totalBilhete" class="java.math.BigDecimal"/> <field name="totalBilhete" class="java.math.BigDecimal"/>
<field name="numpuntoventa" class="java.lang.String"/> <field name="numpuntoventa" class="java.lang.String"/>
<field name="numpuntoventaOrigem" class="java.lang.String"/> <field name="numpuntoventaOrigem" class="java.lang.String"/>
<field name="valorIsenta" class="java.math.BigDecimal"/>
<field name="valorContabil" class="java.math.BigDecimal"/>
<field name="valorOutras" class="java.math.BigDecimal"/>
<field name="fechorDevolucao" class="java.lang.String"/>
<field name="estado" class="java.lang.String"/>
<variable name="precioPagado_1" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum"> <variable name="precioPagado_1" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{precioPagado}]]></variableExpression> <variableExpression><![CDATA[$F{precioPagado}]]></variableExpression>
</variable> </variable>
@ -76,20 +82,113 @@
<variable name="vSubTotalBilhete" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum"> <variable name="vSubTotalBilhete" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{totalBilhete}]]></variableExpression> <variableExpression><![CDATA[$F{totalBilhete}]]></variableExpression>
</variable> </variable>
<variable name="vSubTotalIsenta" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{valorIsenta}]]></variableExpression>
</variable>
<variable name="vTotalIsenta" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorIsenta}]]></variableExpression>
</variable>
<variable name="vSubTotalOutras" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{valorOutras}]]></variableExpression>
</variable>
<variable name="vTotalOutras" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorOutras}]]></variableExpression>
</variable>
<variable name="vSubTotalContabil" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
</variable>
<variable name="vTotalContabil" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
</variable>
<variable name="estornoMunicipal_1" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
<variableExpression><![CDATA[$F{estornoMunicipal}]]></variableExpression>
</variable>
<variable name="estornoEstadual_1" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
<variableExpression><![CDATA[$F{estornoEstadual}]]></variableExpression>
</variable>
<variable name="somaEstorno" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
<variableExpression><![CDATA[$F{estornoEstadual}.add($F{estornoMunicipal})]]></variableExpression>
</variable>
<group name="empresa"> <group name="empresa">
<groupExpression><![CDATA[$F{empresaId}]]></groupExpression> <groupExpression><![CDATA[$F{empresaId}]]></groupExpression>
<groupHeader> <groupHeader>
<band height="15"> <band height="15">
<textField> <textField>
<reportElement x="2" y="0" width="329" height="14" uuid="3055dd3d-ea00-4d23-9a0d-7b86d4b4979f"/> <reportElement x="1" y="0" width="329" height="14" uuid="3055dd3d-ea00-4d23-9a0d-7b86d4b4979f"/>
<textElement> <textElement>
<font size="9" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</groupHeader> </groupHeader>
</group> </group>
<group name="estado_empresa">
<groupExpression><![CDATA[$F{estadoId}]]></groupExpression>
<groupHeader>
<band height="15" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="330" height="15" uuid="bf4c40a4-42c9-4450-b86b-14d1afc8c7d6"/>
<textElement>
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{estado}+" - "+$F{uf}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="47">
<textField>
<reportElement x="0" y="1" width="271" height="14" uuid="b8ec678c-6528-4e69-bfed-9ebfde7416ae"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.impEstornarInterestadual}+" ( " + $F{porcEstadual} + "% )"]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="0" width="800" height="1" uuid="ddbec772-7ac5-4ca7-8bd9-f4d556cd8015"/>
</line>
<textField>
<reportElement x="0" y="15" width="271" height="14" uuid="2fbc23a4-a87e-4b19-960a-074a9c17231f"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.impEstornarIntermunicipal}+" ( " + $F{porcMunicipal} + "% )"]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="288" y="15" width="72" height="14" uuid="ac8a5a5d-6d23-445c-925f-81a506de6e5e"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{estornoMunicipal_1}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="288" y="1" width="72" height="14" uuid="824c2026-e1ef-459e-88d3-a746acff0dad"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{estornoEstadual_1}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="288" y="29" width="72" height="14" uuid="10545815-fcf1-40b9-b645-7d1e3097cf0c"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{somaEstorno}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="29" width="271" height="14" uuid="d4909dc9-7ef7-4fc0-b835-73c30300e693"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.impEstornarTotal}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="44" width="800" height="1" uuid="46e728c0-ea4e-4eaf-a88a-e44b3d1381f1"/>
</line>
</band>
</groupFooter>
</group>
<group name="data_group"> <group name="data_group">
<groupExpression><![CDATA[$F{fechorVenta}]]></groupExpression> <groupExpression><![CDATA[$F{fechorVenta}]]></groupExpression>
<groupHeader> <groupHeader>
@ -97,7 +196,7 @@
<textField> <textField>
<reportElement x="1" y="0" width="100" height="15" uuid="c92216da-0d77-4711-94a4-b8b2d00465a3"/> <reportElement x="1" y="0" width="100" height="15" uuid="c92216da-0d77-4711-94a4-b8b2d00465a3"/>
<textElement> <textElement>
<font size="9" isBold="false"/> <font size="6" isBold="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{fechorVenta}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{fechorVenta}]]></textFieldExpression>
</textField> </textField>
@ -109,16 +208,16 @@
<groupFooter> <groupFooter>
<band height="15"> <band height="15">
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="669" y="1" width="45" height="14" uuid="67bdceb4-d6ed-42c5-871f-d809ffec832b"/> <reportElement x="593" y="1" width="45" height="14" uuid="67bdceb4-d6ed-42c5-871f-d809ffec832b"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{precioPagado_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{vSubTotalContabil}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="619" y="1" width="50" height="14" uuid="943bc881-8248-4da5-999a-62b2f67a573a"/> <reportElement x="543" y="1" width="50" height="14" uuid="943bc881-8248-4da5-999a-62b2f67a573a"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{precioPagado_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{precioPagado_1}]]></textFieldExpression>
</textField> </textField>
@ -126,26 +225,40 @@
<reportElement x="1" y="0" width="800" height="1" uuid="eb29c074-35dc-47d8-855b-78b95676b7ae"/> <reportElement x="1" y="0" width="800" height="1" uuid="eb29c074-35dc-47d8-855b-78b95676b7ae"/>
</line> </line>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="755" y="2" width="45" height="13" uuid="6e65196e-b844-4c3d-9697-44aadad52344"/> <reportElement x="681" y="1" width="40" height="14" uuid="6e65196e-b844-4c3d-9697-44aadad52344"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{valorIcms_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{valorIcms_1}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="1" y="1" width="139" height="13" uuid="bbb5fed7-d553-42f3-9d90-4e548e0b7b38"/> <reportElement x="1" y="1" width="139" height="13" uuid="bbb5fed7-d553-42f3-9d90-4e548e0b7b38"/>
<textElement> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Subtotal - " + $F{fechorVenta}]]></textFieldExpression> <textFieldExpression><![CDATA["Subtotal - " + $F{fechorVenta}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="536" y="1" width="83" height="14" uuid="49c16eb0-9d9d-4e17-a1a7-20391bde4035"/> <reportElement x="479" y="1" width="64" height="14" uuid="49c16eb0-9d9d-4e17-a1a7-20391bde4035"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{vSubTotalBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{vSubTotalBilhete}]]></textFieldExpression>
</textField> </textField>
<textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement x="721" y="1" width="40" height="14" uuid="dd9cdc1b-7478-467b-ab0c-c6b491790a34"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{vSubTotalIsenta}]]></textFieldExpression>
</textField>
<textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement x="761" y="1" width="40" height="14" uuid="3a9f3181-f27b-4978-9a0b-16ad6c20032a"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{vSubTotalOutras}]]></textFieldExpression>
</textField>
</band> </band>
</groupFooter> </groupFooter>
</group> </group>
@ -153,7 +266,7 @@
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<pageHeader> <pageHeader>
<band height="62" splitType="Stretch"> <band height="78" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="1" y="1" width="577" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/> <reportElement mode="Transparent" x="1" y="1" width="577" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
@ -162,72 +275,133 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression>
</textField> </textField>
<textField>
<reportElement mode="Transparent" x="593" y="16" width="209" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="1e340cae-0c0a-48a3-b2b8-6667a44078af"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pagina} + ($V{PAGE_COUNT}+1)]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="45" y="30" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="124" y="30" width="63" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="96" y="30" width="28" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="98d664b7-8e13-408c-bf89-70bf11c87a60"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="593" y="0" width="207" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line> <line>
<reportElement x="1" y="45" width="800" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/> <reportElement x="1" y="62" width="800" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
</line> </line>
<textField> <textField>
<reportElement mode="Transparent" x="1" y="46" width="43" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/> <reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1" y="63" width="43" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="46" y="46" width="756" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/> <reportElement stretchType="RelativeToTallestObject" x="46" y="63" width="756" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Top">
<font size="8"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement mode="Transparent" x="2" y="30" width="42" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a"/> <reportElement mode="Transparent" x="2" y="17" width="66" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="94" y="32" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="99f1035a-c3a6-42f8-beac-8a0bfe8aff08"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataVendaInicial}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="164" y="32" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e13f41e4-5a62-4bf8-81cf-7a64e2cd8a5e"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataVendaFinal}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="2" y="47" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="2fd5ba9d-ae93-48cd-ae4e-6c7c3302d4b0">
<printWhenExpression><![CDATA[$P{dataDevolucaoInicial} != null || $P{dataDevolucaoFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoDevolucao}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="145" y="47" width="19" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="d9fcac2b-0936-47f7-8653-23342d1373a1">
<printWhenExpression><![CDATA[$P{dataDevolucaoFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="2" y="32" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="37103df3-02a9-4e82-aa2f-92fb1b7fcdd8"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoVenda}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="94" y="47" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="9351a4b9-fbc4-4438-bf64-a88c7bb58838"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataDevolucaoInicial}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="145" y="32" width="19" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="96e671b8-e26f-4603-b629-456db24a1203">
<printWhenExpression><![CDATA[$P{dataVendaFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="164" y="47" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="5ae8525f-9db9-4192-b64c-b28c27e72351"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataDevolucaoFinal}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="712" y="1" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="b8a3345b-03b7-4bfd-8cab-31c07f3e0efa"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="684" y="17" width="116" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4b6e9016-c490-4abc-a659-fc73eb24a93a"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{label.de}+" "+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="701" y="33" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="12e51d0a-4fd5-4dff-95f5-762d8e3bf1f0"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="630" y="1" width="82" height="15" uuid="4ac1cdfd-5dfa-4ce7-b9dd-2f193149c8c2"/>
<textElement textAlignment="Right">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.dataHora}]]></textFieldExpression>
</textField>
</band> </band>
</pageHeader> </pageHeader>
<columnHeader> <columnHeader>
@ -245,180 +419,224 @@
</graphicElement> </graphicElement>
</line> </line>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="195" y="1" width="117" height="14" isPrintWhenDetailOverflows="true" uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270"/> <reportElement stretchType="RelativeToTallestObject" x="214" y="1" width="81" height="14" isPrintWhenDetailOverflows="true" uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270"/>
<textElement verticalAlignment="Middle" markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.aidf}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.aidf}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="381" y="1" width="96" height="14" isPrintWhenDetailOverflows="true" uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb"/> <reportElement stretchType="RelativeToTallestObject" x="360" y="1" width="74" height="14" isPrintWhenDetailOverflows="true" uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb"/>
<textElement verticalAlignment="Middle" markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.serieSubs}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.serieSubs}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="477" y="1" width="59" height="14" isPrintWhenDetailOverflows="true" uuid="60cc6a71-4f40-49de-9f78-08b65931d16d"/> <reportElement stretchType="RelativeToTallestObject" x="434" y="1" width="45" height="14" isPrintWhenDetailOverflows="true" uuid="60cc6a71-4f40-49de-9f78-08b65931d16d"/>
<textElement verticalAlignment="Middle" markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.numero}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.numero}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="669" y="1" width="45" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/> <reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="593" y="1" width="45" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.baseCalc}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.baseCalc}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="714" y="1" width="41" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="e647ff9e-f7e2-4c90-a75f-d831980391b6"/> <reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="638" y="1" width="43" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="e647ff9e-f7e2-4c90-a75f-d831980391b6"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.aliquota}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.aliquota}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="755" y="1" width="45" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="a1a4be94-54f7-42f0-bdd3-5b0b2d6a37c4"/> <reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="681" y="1" width="40" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="a1a4be94-54f7-42f0-bdd3-5b0b2d6a37c4"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.icms}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.icms}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="619" y="1" width="50" height="14" isPrintWhenDetailOverflows="true" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/> <reportElement stretchType="RelativeToTallestObject" x="543" y="1" width="50" height="14" isPrintWhenDetailOverflows="true" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/>
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.vrContabil}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.vrContabil}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="536" y="1" width="83" height="14" isPrintWhenDetailOverflows="true" uuid="2b804e18-71b2-44b5-89c3-4393430c94f3"/> <reportElement stretchType="RelativeToTallestObject" x="479" y="1" width="64" height="14" isPrintWhenDetailOverflows="true" uuid="2b804e18-71b2-44b5-89c3-4393430c94f3"/>
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.totalBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.totalBilhete}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="312" y="1" width="69" height="14" isPrintWhenDetailOverflows="true" uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b"/> <reportElement stretchType="RelativeToTallestObject" x="295" y="1" width="65" height="14" isPrintWhenDetailOverflows="true" uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b"/>
<textElement verticalAlignment="Middle" markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.numeroBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.numeroBilhete}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="85" height="14" isPrintWhenDetailOverflows="true" uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf"/> <reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="65" height="14" isPrintWhenDetailOverflows="true" uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf"/>
<textElement verticalAlignment="Middle" markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="165" y="1" width="30" height="14" isPrintWhenDetailOverflows="true" uuid="2b0943fd-f6c2-414b-b6d1-cb8ad1734e06"/> <reportElement stretchType="RelativeToTallestObject" x="125" y="1" width="30" height="14" isPrintWhenDetailOverflows="true" uuid="2b0943fd-f6c2-414b-b6d1-cb8ad1734e06"/>
<textElement verticalAlignment="Middle" markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.uf}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.uf}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="86" y="1" width="79" height="14" isPrintWhenDetailOverflows="true" uuid="f8fe80df-0d02-4f10-b11e-970245f8fb54"/> <reportElement stretchType="RelativeToTallestObject" x="66" y="1" width="59" height="14" isPrintWhenDetailOverflows="true" uuid="f8fe80df-0d02-4f10-b11e-970245f8fb54"/>
<textElement verticalAlignment="Middle" markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.numpuntoventaOrigem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.numpuntoventaOrigem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="155" y="1" width="59" height="14" isPrintWhenDetailOverflows="true" uuid="fc142d15-a328-4187-89dc-9d8d4f3dd270"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.fechorDevolucao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="721" y="1" width="40" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="a77ed233-da19-434c-b3d9-e7a418acaf00"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.isenta}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="761" y="1" width="40" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="8dc706f6-dd2d-4b71-acf0-fa8dcd5c4f8d"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.outras}]]></textFieldExpression>
</textField>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="14"> <band height="14">
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="195" y="0" width="117" height="14" uuid="a34502fa-62b7-44b6-9218-90034054b7ac"/> <reportElement x="214" y="0" width="81" height="14" uuid="a34502fa-62b7-44b6-9218-90034054b7ac"/>
<textElement> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{aidf}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{aidf}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="381" y="0" width="96" height="14" uuid="73fc6712-d370-49e2-ac39-55e2fa5ce9e2"/> <reportElement x="360" y="0" width="74" height="14" uuid="73fc6712-d370-49e2-ac39-55e2fa5ce9e2"/>
<textElement> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{serieSubSerie}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{serieSubSerie}]]></textFieldExpression>
</textField> </textField>
<textField pattern=" ###0.00"> <textField pattern=" ###0.00">
<reportElement x="619" y="0" width="50" height="14" uuid="b14dbaab-e9a1-4aae-a12c-6305da9d2f80"/> <reportElement x="543" y="0" width="50" height="14" uuid="b14dbaab-e9a1-4aae-a12c-6305da9d2f80"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
</textField> </textField>
<textField pattern=" ###0.00"> <textField pattern=" ###0.00">
<reportElement x="536" y="0" width="83" height="14" uuid="a1bcec7c-0ca6-4f9f-a4c7-9757842b1b4f"/> <reportElement x="479" y="0" width="64" height="14" uuid="a1bcec7c-0ca6-4f9f-a4c7-9757842b1b4f"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{totalBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{totalBilhete}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement x="714" y="0" width="41" height="14" uuid="3285bf53-66f1-4dc2-b3db-d12875efa546"/> <reportElement x="638" y="0" width="43" height="14" uuid="3285bf53-66f1-4dc2-b3db-d12875efa546"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement x="669" y="0" width="45" height="14" uuid="6772d6a9-3611-4cb6-9c3b-f78dc3fb5dc0"/> <reportElement x="593" y="0" width="45" height="14" uuid="6772d6a9-3611-4cb6-9c3b-f78dc3fb5dc0"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
</textField> </textField>
<textField pattern=" ###0.00" isBlankWhenNull="true"> <textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement x="755" y="0" width="45" height="14" uuid="e948b0e2-03c4-47c9-91f1-90d3a3fc4bf4"/> <reportElement x="681" y="0" width="40" height="14" uuid="e948b0e2-03c4-47c9-91f1-90d3a3fc4bf4"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{valorIcms}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{valorIcms}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="477" y="0" width="59" height="14" uuid="755796e0-1c3a-470a-a226-35e01d006653"/> <reportElement x="434" y="0" width="45" height="14" uuid="755796e0-1c3a-470a-a226-35e01d006653"/>
<textElement> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{folio}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{folio}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="312" y="0" width="69" height="14" uuid="46bc3410-c01a-4e91-a8e9-17f02536e23d"/> <reportElement x="295" y="0" width="65" height="14" uuid="46bc3410-c01a-4e91-a8e9-17f02536e23d"/>
<textElement markup="none"> <textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="false"/> <font size="6" isBold="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="1" y="0" width="85" height="14" uuid="74a5a183-6fe2-4f22-8b51-b54197aa3582"/> <reportElement x="1" y="0" width="65" height="14" uuid="74a5a183-6fe2-4f22-8b51-b54197aa3582"/>
<textElement> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numpuntoventa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numpuntoventa}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="165" y="0" width="30" height="14" uuid="8a750495-30d4-4093-b08e-1d487fe9384b"/> <reportElement x="125" y="0" width="30" height="14" uuid="8a750495-30d4-4093-b08e-1d487fe9384b"/>
<textElement> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{uf}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{uf}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="86" y="0" width="79" height="14" uuid="ac79d04b-123b-45f4-bdbc-81819b16c668"/> <reportElement x="66" y="0" width="59" height="14" uuid="ac79d04b-123b-45f4-bdbc-81819b16c668"/>
<textElement> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numpuntoventaOrigem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numpuntoventaOrigem}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true">
<reportElement x="155" y="0" width="59" height="14" uuid="c7b4a542-1cfc-4646-a423-53c5ea12d4f3"/>
<textElement verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{fechorDevolucao}]]></textFieldExpression>
</textField>
<textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement x="721" y="0" width="40" height="14" uuid="cdc6fee6-76ba-4cd9-95ee-0ad7fe34c515"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorIsenta}]]></textFieldExpression>
</textField>
<textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement x="761" y="0" width="40" height="14" uuid="4b5bd414-7154-4d27-9be3-5764b19cd5d9"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorOutras}]]></textFieldExpression>
</textField>
</band> </band>
</detail> </detail>
<lastPageFooter> <lastPageFooter>
@ -429,24 +647,21 @@
<textField> <textField>
<reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="67" height="14" uuid="c57012f1-edf2-4505-86c8-693c38a8a0cf"/> <reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="67" height="14" uuid="c57012f1-edf2-4505-86c8-693c38a8a0cf"/>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</textField> </textField>
<line>
<reportElement x="0" y="0" width="800" height="1" uuid="c2a4d216-ecbf-4690-876b-3263188595ad"/>
</line>
<textField> <textField>
<reportElement stretchType="RelativeToTallestObject" x="236" y="1" width="59" height="14" uuid="0dcac787-43f7-4e9f-84c8-06567671ddb7"/> <reportElement stretchType="RelativeToTallestObject" x="236" y="1" width="59" height="14" uuid="0dcac787-43f7-4e9f-84c8-06567671ddb7"/>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{qtdeBilhetes}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{qtdeBilhetes}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToTallestObject" x="140" y="1" width="96" height="14" uuid="fba1bd88-a15f-4d9f-93fb-9abbfaa5429e"/> <reportElement stretchType="RelativeToTallestObject" x="140" y="1" width="96" height="14" uuid="fba1bd88-a15f-4d9f-93fb-9abbfaa5429e"/>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.qtdeBilhetes}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.qtdeBilhetes}]]></textFieldExpression>
</textField> </textField>
@ -454,33 +669,47 @@
<reportElement positionType="Float" x="1" y="15" width="800" height="1" uuid="ff50b0f9-831b-428e-9177-b264920c542b"/> <reportElement positionType="Float" x="1" y="15" width="800" height="1" uuid="ff50b0f9-831b-428e-9177-b264920c542b"/>
</line> </line>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement stretchType="RelativeToTallestObject" x="619" y="1" width="50" height="14" uuid="5bb73e4d-a51b-4a04-bed0-8fa3eb7f8553"/> <reportElement stretchType="RelativeToTallestObject" x="543" y="1" width="50" height="14" uuid="5bb73e4d-a51b-4a04-bed0-8fa3eb7f8553"/>
<textElement textAlignment="Right" verticalAlignment="Middle"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{precioPagado_total}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{precioPagado_total}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement stretchType="RelativeToTallestObject" x="669" y="1" width="45" height="14" uuid="7c3ce565-f549-48d2-815d-9b4d7a39b1ca"/> <reportElement stretchType="RelativeToTallestObject" x="593" y="1" width="45" height="14" uuid="7c3ce565-f549-48d2-815d-9b4d7a39b1ca"/>
<textElement textAlignment="Right" verticalAlignment="Middle"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{precioPagado_total}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{vTotalContabil}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement stretchType="RelativeToTallestObject" x="755" y="2" width="45" height="14" uuid="7a2dbe9b-868e-46db-b3b3-6e759d4dba98"/> <reportElement stretchType="RelativeToTallestObject" x="681" y="1" width="40" height="14" uuid="7a2dbe9b-868e-46db-b3b3-6e759d4dba98"/>
<textElement textAlignment="Right" verticalAlignment="Middle"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{valorIcms_total}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{valorIcms_total}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="false"> <textField pattern="###0.00" isBlankWhenNull="false">
<reportElement stretchType="RelativeToTallestObject" x="536" y="1" width="83" height="14" uuid="80bddbda-0eec-4839-9510-35800aa6d742"/> <reportElement stretchType="RelativeToTallestObject" x="479" y="1" width="64" height="14" uuid="80bddbda-0eec-4839-9510-35800aa6d742"/>
<textElement textAlignment="Right" verticalAlignment="Middle"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="9"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{vTotalBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{vTotalBilhete}]]></textFieldExpression>
</textField> </textField>
<textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="761" y="1" width="40" height="14" uuid="fba9c1d7-5a33-4229-9371-31aacc2a9fbb"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{vTotalOutras}]]></textFieldExpression>
</textField>
<textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="721" y="1" width="40" height="14" uuid="e6928dff-a4be-42a7-bb7e-281a23110d3a"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{vTotalIsenta}]]></textFieldExpression>
</textField>
</band> </band>
</summary> </summary>
<noData> <noData>
@ -488,7 +717,7 @@
<textField> <textField>
<reportElement x="97" y="0" width="573" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/> <reportElement x="97" y="0" width="573" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/>
<textElement markup="none"> <textElement markup="none">
<font size="11" isBold="true"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField> </textField>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioDevolucaoBilhetesConsolidado" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2"> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioDevolucaoBilhetesConsolidado" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="1.5"/> <property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="7"/> <property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table"> <style name="table">
<box> <box>
@ -24,13 +24,15 @@
<pen lineWidth="0.5" lineColor="#000000"/> <pen lineWidth="0.5" lineColor="#000000"/>
</box> </box>
</style> </style>
<parameter name="DATA_INICIO" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/> <parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/> <parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/> <parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/> <parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/> <parameter name="TIPO_DATA" class="java.lang.Integer"/>
<parameter name="dataVendaInicial" class="java.util.Date"/>
<parameter name="dataVendaFinal" class="java.util.Date"/>
<parameter name="dataDevolucaoInicial" class="java.util.Date"/>
<parameter name="dataDevolucaoFinal" class="java.util.Date"/>
<queryString> <queryString>
<![CDATA[]]> <![CDATA[]]>
</queryString> </queryString>
@ -154,7 +156,7 @@
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<pageHeader> <pageHeader>
<band height="62" splitType="Stretch"> <band height="77" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="1" y="1" width="577" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/> <reportElement mode="Transparent" x="1" y="1" width="577" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
@ -163,71 +165,132 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression>
</textField> </textField>
<line>
<reportElement x="1" y="62" width="800" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
</line>
<textField> <textField>
<reportElement mode="Transparent" x="593" y="16" width="209" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="1e340cae-0c0a-48a3-b2b8-6667a44078af"/> <reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1" y="63" width="43" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pagina} + ($V{PAGE_COUNT} + 1)]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="45" y="30" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="124" y="30" width="63" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement mode="Transparent" x="96" y="30" width="28" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="98d664b7-8e13-408c-bf89-70bf11c87a60"/> <reportElement stretchType="RelativeToTallestObject" x="46" y="63" width="756" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement verticalAlignment="Top">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="145" y="32" width="19" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="8739a50f-b960-40ca-99fd-7ce27e99b67b">
<printWhenExpression><![CDATA[$P{dataVendaFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="145" y="47" width="19" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="b607cec5-59f9-4001-b474-9acab1a8e312">
<printWhenExpression><![CDATA[$P{dataDevolucaoFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="94" y="32" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="fa9b40ac-d878-4e48-b543-05a015628a2d"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataVendaInicial}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="2" y="47" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="d7cb706d-350b-42f1-a830-87f304979d14">
<printWhenExpression><![CDATA[$P{dataDevolucaoInicial} != null || $P{dataDevolucaoFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoDevolucao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="164" y="47" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7a551a18-43ac-4f60-9adb-d2b454743fce"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataDevolucaoFinal}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="2" y="17" width="66" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="a6998f76-2eaa-41ed-b996-ad064b3f603d"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="2" y="32" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="848a2eed-d6e3-498e-ab46-e4c397430382"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoVenda}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="164" y="32" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="b4642581-8fc7-4a30-b100-67995f10d905"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataVendaFinal}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="94" y="47" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="211c536c-2d2e-40a1-9d33-0700c064db7c"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataDevolucaoInicial}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="701" y="33" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="d0446296-1d50-4558-92a4-34148b90576d"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="684" y="17" width="116" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="88758926-3726-42c1-8aa5-32889c8a0d35"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{label.de}+" "+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="593" y="0" width="207" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744"/> <reportElement mode="Transparent" x="712" y="1" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="c4521e46-0f76-43a0-9008-49dd4327caf6"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<line>
<reportElement x="1" y="45" width="800" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
</line>
<textField> <textField>
<reportElement mode="Transparent" x="1" y="46" width="43" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/> <reportElement x="630" y="1" width="82" height="15" uuid="c11c9c4a-b95e-4f81-8f4b-21ef9c6e7f48"/>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font size="9" isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataHora}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="46" y="46" width="756" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="2" y="30" width="42" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</pageHeader> </pageHeader>

View File

@ -0,0 +1,468 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioDevolucaoBilhetesFinanceiro" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="dataVendaInicial" class="java.util.Date"/>
<parameter name="dataVendaFinal" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/>
<parameter name="dataDevolucaoInicial" class="java.util.Date"/>
<parameter name="dataDevolucaoFinal" class="java.util.Date"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="nombpuntoventa" class="java.lang.String"/>
<field name="nombpuntoventaOrigem" class="java.lang.String"/>
<field name="descorigem" class="java.lang.String"/>
<field name="descdestino" class="java.lang.String"/>
<field name="fechorVenta" class="java.lang.String"/>
<field name="fechorDevolucao" class="java.lang.String"/>
<field name="numFolioSistema" class="java.lang.String"/>
<field name="folio" class="java.lang.String"/>
<field name="totalBilhete" class="java.math.BigDecimal"/>
<field name="empresa" class="java.lang.String"/>
<field name="empresaId" class="java.lang.Integer"/>
<field name="cveusuario" class="java.lang.String"/>
<variable name="qtdeBilhetes" class="java.lang.Integer" calculation="Count">
<variableExpression><![CDATA[$F{numFolioSistema}]]></variableExpression>
</variable>
<variable name="vTotalBilhete" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{totalBilhete}]]></variableExpression>
</variable>
<variable name="vSubTotalBilhete" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{totalBilhete}]]></variableExpression>
</variable>
<group name="empresa">
<groupExpression><![CDATA[$F{empresaId}]]></groupExpression>
<groupHeader>
<band height="15">
<textField>
<reportElement x="2" y="0" width="329" height="14" uuid="3055dd3d-ea00-4d23-9a0d-7b86d4b4979f"/>
<textElement>
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="data_group">
<groupExpression><![CDATA[$F{fechorVenta}]]></groupExpression>
<groupHeader>
<band height="17">
<textField>
<reportElement x="1" y="0" width="100" height="15" uuid="c92216da-0d77-4711-94a4-b8b2d00465a3"/>
<textElement>
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{fechorVenta}]]></textFieldExpression>
</textField>
<line>
<reportElement x="1" y="15" width="800" height="1" uuid="fc2f690d-3659-4d11-a671-9c004341d03d"/>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="15">
<line>
<reportElement x="1" y="0" width="800" height="1" uuid="eb29c074-35dc-47d8-855b-78b95676b7ae"/>
</line>
<textField>
<reportElement x="1" y="1" width="139" height="13" uuid="bbb5fed7-d553-42f3-9d90-4e548e0b7b38"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA["Subtotal - " + $F{fechorVenta}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="505" y="1" width="61" height="14" uuid="49c16eb0-9d9d-4e17-a1a7-20391bde4035"/>
<textElement textAlignment="Right">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{vSubTotalBilhete}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="78" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="1" y="1" width="577" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression>
</textField>
<line>
<reportElement x="1" y="62" width="800" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
</line>
<textField>
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1" y="63" width="43" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="46" y="63" width="756" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement verticalAlignment="Top">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="2" y="17" width="66" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="94" y="32" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="99f1035a-c3a6-42f8-beac-8a0bfe8aff08"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataVendaInicial}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="164" y="32" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e13f41e4-5a62-4bf8-81cf-7a64e2cd8a5e"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataVendaFinal}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="2" y="47" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="2fd5ba9d-ae93-48cd-ae4e-6c7c3302d4b0">
<printWhenExpression><![CDATA[$P{dataDevolucaoInicial} != null || $P{dataDevolucaoFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoDevolucao}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="145" y="47" width="19" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="d9fcac2b-0936-47f7-8653-23342d1373a1">
<printWhenExpression><![CDATA[$P{dataDevolucaoFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="2" y="32" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="37103df3-02a9-4e82-aa2f-92fb1b7fcdd8"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoVenda}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="94" y="47" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="9351a4b9-fbc4-4438-bf64-a88c7bb58838"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataDevolucaoInicial}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="145" y="32" width="19" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="96e671b8-e26f-4603-b629-456db24a1203">
<printWhenExpression><![CDATA[$P{dataVendaFinal} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="164" y="47" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="5ae8525f-9db9-4192-b64c-b28c27e72351"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{dataDevolucaoFinal}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="712" y="1" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="b8a3345b-03b7-4bfd-8cab-31c07f3e0efa"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="684" y="17" width="116" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4b6e9016-c490-4abc-a659-fc73eb24a93a"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{label.de}+" "+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="701" y="33" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="12e51d0a-4fd5-4dff-95f5-762d8e3bf1f0"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="630" y="1" width="82" height="15" uuid="4ac1cdfd-5dfa-4ce7-b9dd-2f193149c8c2"/>
<textElement textAlignment="Right">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.dataHora}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="16">
<line>
<reportElement positionType="Float" x="0" y="0" width="800" height="1" uuid="04a75f17-3686-484b-be43-7b7e22e9def7"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement positionType="Float" x="0" y="15" width="800" height="1" uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="331" y="1" width="54" height="14" isPrintWhenDetailOverflows="true" uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.fechorVenta}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="454" y="1" width="51" height="14" isPrintWhenDetailOverflows="true" uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.numero}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="505" y="1" width="62" height="14" isPrintWhenDetailOverflows="true" uuid="60cc6a71-4f40-49de-9f78-08b65931d16d"/>
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.totalBilhete}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="743" y="1" width="59" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/>
<textElement verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.cveusuario}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="623" y="1" width="120" height="14" isPrintWhenDetailOverflows="true" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.nombpuntoventa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="569" y="1" width="54" height="14" isPrintWhenDetailOverflows="true" uuid="2b804e18-71b2-44b5-89c3-4393430c94f3"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.fechorDevolucao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="385" y="1" width="69" height="14" isPrintWhenDetailOverflows="true" uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.numeroBilhete}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="120" height="14" isPrintWhenDetailOverflows="true" uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.nombpuntoventa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="226" y="1" width="105" height="14" isPrintWhenDetailOverflows="true" uuid="2b0943fd-f6c2-414b-b6d1-cb8ad1734e06"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.descdestino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="121" y="1" width="105" height="14" isPrintWhenDetailOverflows="true" uuid="f8fe80df-0d02-4f10-b11e-970245f8fb54"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.descorigem}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="14">
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="504" y="0" width="62" height="14" isPrintWhenDetailOverflows="true" uuid="16fa1364-4eb6-418b-b5fd-e75d0db9d3ff"/>
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{totalBilhete}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="453" y="0" width="51" height="14" isPrintWhenDetailOverflows="true" uuid="b54f0d65-32a3-4b2d-af6f-9722bad4d290"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{folio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="225" y="0" width="105" height="14" isPrintWhenDetailOverflows="true" uuid="13452460-af86-49c4-a121-9f723ee74bb3"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{descdestino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="742" y="0" width="59" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="eeddd86f-c897-4504-947c-c5118e151df1"/>
<textElement verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{cveusuario}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="120" y="0" width="105" height="14" isPrintWhenDetailOverflows="true" uuid="41269147-5dc4-4e23-8668-f9b550bf238b"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{descorigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="622" y="0" width="120" height="14" isPrintWhenDetailOverflows="true" uuid="58daf348-d605-4bc7-bbbc-b60113fd6bb3"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombpuntoventaOrigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="384" y="0" width="69" height="14" isPrintWhenDetailOverflows="true" uuid="621b5322-9b59-484b-ab6b-b0a55b91b353"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="330" y="0" width="54" height="14" isPrintWhenDetailOverflows="true" uuid="d898f319-976b-4ffa-8dc1-0aa359f2fc5f"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{fechorVenta}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="120" height="14" isPrintWhenDetailOverflows="true" uuid="1b2738e1-26b5-4782-a511-477ceb95bfff"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="568" y="0" width="54" height="14" isPrintWhenDetailOverflows="true" uuid="df83e877-1095-478a-8766-0c0ca39a357e"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{fechorDevolucao}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band/>
</lastPageFooter>
<summary>
<band height="17">
<textField>
<reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="67" height="14" uuid="c57012f1-edf2-4505-86c8-693c38a8a0cf"/>
<textElement verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="0" width="800" height="1" uuid="c2a4d216-ecbf-4690-876b-3263188595ad"/>
</line>
<textField>
<reportElement stretchType="RelativeToTallestObject" x="236" y="1" width="59" height="14" uuid="0dcac787-43f7-4e9f-84c8-06567671ddb7"/>
<textElement verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{qtdeBilhetes}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToTallestObject" x="140" y="1" width="96" height="14" uuid="fba1bd88-a15f-4d9f-93fb-9abbfaa5429e"/>
<textElement verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.qtdeBilhetes}]]></textFieldExpression>
</textField>
<line>
<reportElement positionType="Float" x="1" y="15" width="800" height="1" uuid="ff50b0f9-831b-428e-9177-b264920c542b"/>
</line>
<textField pattern="###0.00" isBlankWhenNull="false">
<reportElement stretchType="RelativeToTallestObject" x="505" y="1" width="61" height="14" uuid="80bddbda-0eec-4839-9510-35800aa6d742"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{vTotalBilhete}]]></textFieldExpression>
</textField>
</band>
</summary>
<noData>
<band height="22">
<textField>
<reportElement x="97" y="0" width="573" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/>
<textElement markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,470 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioDevolucaoBilhetes" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="1.6528925619834718"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="138"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_INICIO" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="aidf" class="java.lang.String"/>
<field name="numFolioSistema" class="java.lang.String"/>
<field name="serieSubSerie" class="java.lang.String"/>
<field name="folio" class="java.lang.String"/>
<field name="precioPagado" class="java.math.BigDecimal"/>
<field name="precioBase" class="java.math.BigDecimal"/>
<field name="estadoId" class="java.lang.Integer"/>
<field name="estado" class="java.lang.String"/>
<field name="uf" class="java.lang.String"/>
<field name="fechorVenta" class="java.lang.String"/>
<field name="icms" class="java.math.BigDecimal"/>
<field name="valorIcms" class="java.math.BigDecimal"/>
<field name="empresaId" class="java.lang.Integer"/>
<field name="empresa" class="java.lang.String"/>
<field name="porcMunicipal" class="java.math.BigDecimal"/>
<field name="porcEstadual" class="java.math.BigDecimal"/>
<field name="estornoMunicipal" class="java.math.BigDecimal"/>
<field name="estornoEstadual" class="java.math.BigDecimal"/>
<variable name="precioPagado_1" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{precioPagado}]]></variableExpression>
</variable>
<variable name="valorIcms_1" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
<variableExpression><![CDATA[$F{valorIcms}]]></variableExpression>
</variable>
<variable name="folio_1" class="java.lang.Integer" calculation="Count">
<variableExpression><![CDATA[$F{folio}]]></variableExpression>
</variable>
<variable name="precioPagado_total" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{precioPagado}]]></variableExpression>
</variable>
<variable name="valorIcms_total" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorIcms}]]></variableExpression>
</variable>
<variable name="estornoMunicipal_1" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
<variableExpression><![CDATA[$F{estornoMunicipal}]]></variableExpression>
</variable>
<variable name="estornoEstadual_1" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
<variableExpression><![CDATA[$F{estornoEstadual}]]></variableExpression>
</variable>
<variable name="somaEstorno" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
<variableExpression><![CDATA[$F{estornoEstadual}.add($F{estornoMunicipal})]]></variableExpression>
</variable>
<group name="empresa">
<groupExpression><![CDATA[$F{empresaId}]]></groupExpression>
<groupHeader>
<band height="15">
<textField>
<reportElement x="2" y="0" width="138" height="14" uuid="3055dd3d-ea00-4d23-9a0d-7b86d4b4979f"/>
<textElement>
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="estado_empresa">
<groupExpression><![CDATA[$F{estadoId}]]></groupExpression>
<groupHeader>
<band height="15">
<textField>
<reportElement x="2" y="0" width="138" height="14" uuid="c15cca63-a37a-4709-9895-3357287ba7c4"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{estado}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="52">
<textField>
<reportElement x="2" y="1" width="271" height="17" uuid="0244fe68-ad89-44e9-a002-ae0a861f51c9"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA["Imposto a Estornar Interestadual (" + $F{porcEstadual} + " % )"]]></textFieldExpression>
</textField>
<line>
<reportElement x="2" y="0" width="553" height="1" uuid="9f5bfcdb-8a1f-45b5-bf7c-76fe28f72e9f"/>
</line>
<textField>
<reportElement x="2" y="18" width="271" height="17" uuid="5726d4b8-da32-4b50-8531-3c31285e03d6"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA["Imposto a Estornar Intermunicipal (" + $F{porcMunicipal} + " % )"]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="461" y="18" width="72" height="17" uuid="cf8b4127-af83-4ef1-9913-fbd00f0ffe35"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{estornoMunicipal_1}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="461" y="1" width="72" height="17" uuid="c9cec4e3-dd36-4806-b32f-010b4f2c4705"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{estornoEstadual_1}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="461" y="35" width="72" height="16" uuid="693122b4-eb19-463d-8061-76a4b58b458f"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{somaEstorno}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="data_group">
<groupExpression><![CDATA[$F{fechorVenta}]]></groupExpression>
<groupHeader>
<band height="17">
<textField>
<reportElement x="1" y="0" width="100" height="15" uuid="c92216da-0d77-4711-94a4-b8b2d00465a3"/>
<textElement>
<font size="9" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{fechorVenta}]]></textFieldExpression>
</textField>
<line>
<reportElement x="1" y="15" width="553" height="1" uuid="fc2f690d-3659-4d11-a671-9c004341d03d"/>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="15">
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="343" y="0" width="60" height="14" uuid="67bdceb4-d6ed-42c5-871f-d809ffec832b"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{precioPagado_1}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="273" y="0" width="70" height="14" uuid="943bc881-8248-4da5-999a-62b2f67a573a"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{precioPagado_1}]]></textFieldExpression>
</textField>
<line>
<reportElement x="1" y="0" width="554" height="1" uuid="eb29c074-35dc-47d8-855b-78b95676b7ae"/>
</line>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="461" y="1" width="72" height="13" uuid="6e65196e-b844-4c3d-9697-44aadad52344"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{valorIcms_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1" y="1" width="139" height="13" uuid="bbb5fed7-d553-42f3-9d90-4e548e0b7b38"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA["Subtotal - " + $F{fechorVenta}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="62" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="1" y="1" width="257" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="461" y="16" width="93" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="1e340cae-0c0a-48a3-b2b8-6667a44078af"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pagina} + $V{PAGE_COUNT}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="45" y="30" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="124" y="30" width="63" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="96" y="30" width="28" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="98d664b7-8e13-408c-bf89-70bf11c87a60"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="461" y="0" width="93" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement x="1" y="45" width="553" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
</line>
<textField>
<reportElement mode="Transparent" x="1" y="46" width="43" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="46" y="46" width="508" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="2" y="30" width="42" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="16">
<line>
<reportElement x="0" y="0" width="554" height="1" uuid="04a75f17-3686-484b-be43-7b7e22e9def7"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="0" y="15" width="555" height="1" uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField>
<reportElement x="0" y="1" width="140" height="14" uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270"/>
<textElement markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.aidf}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="140" y="1" width="74" height="14" uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb"/>
<textElement markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.serieSubs}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="214" y="1" width="59" height="14" uuid="60cc6a71-4f40-49de-9f78-08b65931d16d"/>
<textElement markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.numero}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="343" y="1" width="60" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.baseCalc}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="403" y="1" width="58" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e647ff9e-f7e2-4c90-a75f-d831980391b6"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.aliquota}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="461" y="1" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="a1a4be94-54f7-42f0-bdd3-5b0b2d6a37c4"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.icms}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="273" y="1" width="70" height="14" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/>
<textElement markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.vrContabil}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="14">
<textField isBlankWhenNull="true">
<reportElement x="0" y="0" width="140" height="14" uuid="a34502fa-62b7-44b6-9218-90034054b7ac"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="140" y="0" width="74" height="14" uuid="73fc6712-d370-49e2-ac39-55e2fa5ce9e2"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{serieSubSerie}]]></textFieldExpression>
</textField>
<textField pattern=" ###0.00">
<reportElement x="273" y="0" width="70" height="14" uuid="b14dbaab-e9a1-4aae-a12c-6305da9d2f80"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="403" y="0" width="58" height="14" uuid="3285bf53-66f1-4dc2-b3db-d12875efa546"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="343" y="0" width="60" height="14" uuid="6772d6a9-3611-4cb6-9c3b-f78dc3fb5dc0"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
</textField>
<textField pattern=" ###0.00" isBlankWhenNull="true">
<reportElement x="461" y="0" width="72" height="14" uuid="e948b0e2-03c4-47c9-91f1-90d3a3fc4bf4"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorIcms}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="214" y="0" width="59" height="14" uuid="755796e0-1c3a-470a-a226-35e01d006653"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{folio}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band/>
</lastPageFooter>
<summary>
<band height="17">
<textField>
<reportElement x="1" y="1" width="44" height="14" uuid="c57012f1-edf2-4505-86c8-693c38a8a0cf"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="0" width="555" height="1" uuid="c2a4d216-ecbf-4690-876b-3263188595ad"/>
</line>
<textField>
<reportElement x="242" y="1" width="31" height="14" uuid="0dcac787-43f7-4e9f-84c8-06567671ddb7"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{folio_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="140" y="1" width="102" height="14" uuid="fba1bd88-a15f-4d9f-93fb-9abbfaa5429e"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.qtdeBilhetes}]]></textFieldExpression>
</textField>
<line>
<reportElement x="1" y="15" width="554" height="1" uuid="ff50b0f9-831b-428e-9177-b264920c542b"/>
</line>
<textField pattern="###0.00">
<reportElement x="273" y="1" width="70" height="14" uuid="5bb73e4d-a51b-4a04-bed0-8fa3eb7f8553"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{precioPagado_total}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="343" y="1" width="60" height="14" uuid="7c3ce565-f549-48d2-815d-9b4d7a39b1ca"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{precioPagado_total}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="461" y="1" width="72" height="14" uuid="7a2dbe9b-868e-46db-b3b3-6e759d4dba98"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{valorIcms_total}]]></textFieldExpression>
</textField>
</band>
</summary>
<noData>
<band height="22">
<textField>
<reportElement x="97" y="0" width="407" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -18,9 +18,17 @@ public class DevolucaoBilhetes {
private BigDecimal icms; private BigDecimal icms;
private BigDecimal valorIcms; private BigDecimal valorIcms;
private String fechorVenta; private String fechorVenta;
private String fechorDevolucao;
private String numpuntoventa; private String numpuntoventa;
private String numpuntoventaOrigem; private String numpuntoventaOrigem;
private String nombpuntoventa; private String nombpuntoventa;
private String nombpuntoventaOrigem;
private String descorigem;
private String descdestino;
private String cveusuario;
private boolean isenta;
private BigDecimal valorIsenta;
private BigDecimal valorContabil;
BigDecimal porcMunicipal; BigDecimal porcMunicipal;
BigDecimal porcEstadual; BigDecimal porcEstadual;
@ -213,4 +221,72 @@ public class DevolucaoBilhetes {
this.numpuntoventaOrigem = numpuntoventaOrigem; this.numpuntoventaOrigem = numpuntoventaOrigem;
} }
public String getNombpuntoventaOrigem() {
return nombpuntoventaOrigem;
}
public void setNombpuntoventaOrigem(String nombpuntoventaOrigem) {
this.nombpuntoventaOrigem = nombpuntoventaOrigem;
}
public String getDescorigem() {
return descorigem;
}
public void setDescorigem(String descorigem) {
this.descorigem = descorigem;
}
public String getDescdestino() {
return descdestino;
}
public void setDescdestino(String descdestino) {
this.descdestino = descdestino;
}
public String getFechorDevolucao() {
return fechorDevolucao;
}
public void setFechorDevolucao(String fechorDevolucao) {
this.fechorDevolucao = fechorDevolucao;
}
public String getCveusuario() {
return cveusuario;
}
public void setCveusuario(String cveusuario) {
this.cveusuario = cveusuario;
}
public boolean isIsenta() {
return isenta;
}
public void setIsenta(boolean isenta) {
this.isenta = isenta;
}
public BigDecimal getValorIsenta() {
return valorIsenta;
}
public void setValorIsenta(BigDecimal valorIsenta) {
this.valorIsenta = valorIsenta;
}
public BigDecimal getValorContabil() {
return valorContabil;
}
public void setValorContabil(BigDecimal valorContabil) {
this.valorContabil = valorContabil;
}
public BigDecimal getValorOutras() {
return valorContabil.subtract(precioPagado);
}
} }

View File

@ -4,6 +4,7 @@
*/ */
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos; package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
@ -52,7 +53,7 @@ public class EditarRegionMetropolitanaController extends MyGenericForwardCompose
private MyComboboxParadaCve cmbParadaCve; private MyComboboxParadaCve cmbParadaCve;
private MyListbox paradaList; private MyListbox paradaList;
private MyListbox paradaListDeletada; private List<Parada> paradaListDeletada;
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
@ -95,7 +96,7 @@ public class EditarRegionMetropolitanaController extends MyGenericForwardCompose
try { try {
if (paradaList.getListModel().getSize() == 0) { if (paradaList.getListModel() == null || paradaList.getListModel().getSize() == 0) {
Messagebox.show( Messagebox.show(
Labels.getLabel("editarRegionMetropolitanaController.MSG.vazio"), Labels.getLabel("editarRegionMetropolitanaController.MSG.vazio"),
Labels.getLabel("editarRegionMetropolitanaController.window.title"), Labels.getLabel("editarRegionMetropolitanaController.window.title"),
@ -110,14 +111,17 @@ public class EditarRegionMetropolitanaController extends MyGenericForwardCompose
regionMetropolitanaService.actualizacion(regionMetropolitana); regionMetropolitanaService.actualizacion(regionMetropolitana);
regionMetropolitanaList.updateItem(regionMetropolitana); regionMetropolitanaList.updateItem(regionMetropolitana);
} }
for (Object parada : paradaList.getListData()) {
paradaService.suscribirActualizar((Parada) parada); if(paradaList.getListData() != null) {
} for (Object parada : paradaList.getListData()) {
if (!paradaListDeletada.getListData().isEmpty()) {
for (Object parada : paradaListDeletada.getListData()) {
paradaService.suscribirActualizar((Parada) parada); paradaService.suscribirActualizar((Parada) parada);
} }
}
if (paradaListDeletada != null) {
for (Parada parada : paradaListDeletada) {
paradaService.suscribirActualizar(parada);
}
} }
Messagebox.show( Messagebox.show(
@ -170,7 +174,10 @@ public class EditarRegionMetropolitanaController extends MyGenericForwardCompose
Parada parada = (Parada) paradaList.getSelected(); Parada parada = (Parada) paradaList.getSelected();
parada.setRegionMetropolitana(null); parada.setRegionMetropolitana(null);
paradaListDeletada.addItemNovo(parada); if(paradaListDeletada == null) {
paradaListDeletada = new ArrayList<Parada>();
}
paradaListDeletada.add(parada);
paradaList.removeItem(parada); paradaList.removeItem(parada);

View File

@ -4,7 +4,6 @@
*/ */
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -32,6 +31,7 @@ import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDevolucaoBilhetes; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDevolucaoBilhetes;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDevolucaoBilhetesConsolidado; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDevolucaoBilhetesConsolidado;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDevolucaoBilhetesFinanceiro;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EstadoService; import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.utilerias.DateUtil; import com.rjconsultores.ventaboletos.utilerias.DateUtil;
@ -75,8 +75,11 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
private Combobox cmbPuntoVenta; private Combobox cmbPuntoVenta;
private Datebox datInicial; private Datebox datInicial;
private Datebox datFinal; private Datebox datFinal;
private Datebox datDevolucaoInicial;
private Datebox datDevolucaoFinal;
private Radio rAnalitico; private Radio rFiscal;
private Radio rFinanceiro;
private Radio rConsolidado; private Radio rConsolidado;
private void executarPesquisa() { private void executarPesquisa() {
@ -106,9 +109,20 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder(); StringBuilder filtro = new StringBuilder();
parametros.put("DATA_INICIO", new Timestamp((DateUtil.inicioFecha((java.util.Date) this.datInicial.getValue()).getTime()))); if(this.datInicial.getValue() != null) {
parametros.put("DATA_FINAL", new Timestamp((DateUtil.fimFecha((java.util.Date) this.datFinal.getValue()).getTime()))); parametros.put("dataVendaInicial", DateUtil.inicioFecha(this.datInicial.getValue()));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString()); }
if(this.datFinal.getValue() != null) {
parametros.put("dataVendaFinal", DateUtil.fimFecha(this.datFinal.getValue()));
}
if(this.datDevolucaoInicial.getValue() != null) {
parametros.put("dataDevolucaoInicial", DateUtil.inicioFecha(this.datDevolucaoInicial.getValue()));
}
if(this.datDevolucaoFinal.getValue() != null) {
parametros.put("dataDevolucaoFinal", DateUtil.fimFecha(this.datDevolucaoFinal.getValue()));
}
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getClaveUsuario());
filtro.append("Agência(s): "); filtro.append("Agência(s): ");
if (puntoVentaSelList.getListData().size() > 0) { if (puntoVentaSelList.getListData().size() > 0) {
@ -121,32 +135,41 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
filtro.append(puntoVentaSelList.getListData().size() + " selecionada(s);"); filtro.append(puntoVentaSelList.getListData().size() + " selecionada(s);");
} else { } else {
parametros.put("ISNUMPUNTOVENTATODOS", "S"); parametros.put("ISNUMPUNTOVENTATODOS", "S");
filtro.append("Todas ;"); filtro.append("Todas");
} }
filtro.append("Estados(s): "); filtro.append("; Estado(s): ");
if (estadoList.getSelectedsItens().size() > 0) { if (estadoList.getSelectedsItens().size() > 0) {
parametros.put("ESTADOS", estadoList.getSelectedsItens()); parametros.put("ESTADOS", estadoList.getSelectedsItens());
filtro.append(estadoList.getSelectedsItens().size() + " selecionado(s);"); StringBuilder sEstados = new StringBuilder();
for (Object estado : estadoList.getSelectedsItens()) {
if(sEstados.length() > 0) {
sEstados.append("; ");
}
sEstados.append(((Estado)estado).getCveestado());
}
filtro.append(sEstados.toString());
} else { } else {
filtro.append("Todos ;"); filtro.append("Todos");
} }
filtro.append("Empresa: "); filtro.append("; Empresa: ");
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem(); Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) { if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue(); Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId()); parametros.put("EMPRESA_ID", empresa.getEmpresaId());
filtro.append(empresa.getNombempresa()); filtro.append(empresa.getNombempresa());
} else { } else {
filtro.append("Todos ;"); filtro.append("Todos; ");
} }
parametros.put("FILTROS", filtro.toString()); parametros.put("FILTROS", filtro.toString());
Relatorio relatorio = null; Relatorio relatorio = null;
if(rAnalitico.isChecked()) { if(rFiscal.isChecked()) {
relatorio = new RelatorioDevolucaoBilhetes(parametros, dataSourceRead.getConnection()); relatorio = new RelatorioDevolucaoBilhetes(parametros, dataSourceRead.getConnection());
} else if(rFinanceiro.isChecked()) {
relatorio = new RelatorioDevolucaoBilhetesFinanceiro(parametros, dataSourceRead.getConnection());
} else if(rConsolidado.isChecked()) { } else if(rConsolidado.isChecked()) {
relatorio = new RelatorioDevolucaoBilhetesConsolidado(parametros, dataSourceRead.getConnection()); relatorio = new RelatorioDevolucaoBilhetesConsolidado(parametros, dataSourceRead.getConnection());
} }
@ -155,7 +178,7 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
args.put("relatorio", relatorio); args.put("relatorio", relatorio);
openWindow("/component/reportView.zul", openWindow("/component/reportView.zul",
Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"), args, MODAL); Labels.getLabel("relatorioDevolucaoBilhetesAgenciaController.window.title"), args, MODAL);
} }
@Override @Override

View File

@ -516,6 +516,33 @@ busquedaRelatorioRDIController.labelRadio.radNao = Não
busquedaRelatorioRDIController.seleciona.empresa = Deve ser selecionada uma empresa busquedaRelatorioRDIController.seleciona.empresa = Deve ser selecionada uma empresa
busquedaRelatorioRDIController.seleciona.estado = Deve ser selecionado ao menos um estado busquedaRelatorioRDIController.seleciona.estado = Deve ser selecionado ao menos um estado
#Devolução de Bilhetes
relatorioDevolucaoBilhetesAgenciaController.window.title = Relatório de Devolução de Bilhetes
relatorioDevolucaoBilhetesAgenciaController.lbDataVendaIni.value = DT Venda Inicial
relatorioDevolucaoBilhetesAgenciaController.lbDataVendaFin.value = DT Venda Final
relatorioDevolucaoBilhetesAgenciaController.lbDataDevolucaoIni.value = DT Devolução Inicial
relatorioDevolucaoBilhetesAgenciaController.lbDataDevolucaoFin.value = DT Devolução Final
relatorioDevolucaoBilhetesAgenciaController.lbEstado.value = Estado
relatorioDevolucaoBilhetesAgenciaController.lbPuntoVenta.value = Agência
relatorioDevolucaoBilhetesAgenciaController.btnPesquisa.label = Pesquisar
relatorioDevolucaoBilhetesAgenciaController.btnLimpar.label = Limpar Seleção
relatorioDevolucaoBilhetesAgenciaController.puntoVentaSelList.codigo = Código
relatorioDevolucaoBilhetesAgenciaController.puntoVentaSelList.nome = Nome
relatorioDevolucaoBilhetesAgenciaController.lbEmpresa.value = Empresa
relatorioDevolucaoBilhetesAgenciaController.chkDesconsideraMes.label = Desconsiderar devoluções no mês/ano da emissão
relatorioDevolucaoBilhetesAgenciaController.rdIndDataBase.label = Periodo com base na data de:
relatorioDevolucaoBilhetesAgenciaController.rdIndDataBase.cmbItemEmissao = Emissão
relatorioDevolucaoBilhetesAgenciaController.rdIndDataBase.cmbItemDevolucao = Devolução
relatorioDevolucaoBilhetesAgenciaController.rdIndAgrupamento.label = Agrupado por:
relatorioDevolucaoBilhetesAgenciaController.rdIndAgrupamento.cmbItemData = Data
relatorioDevolucaoBilhetesAgenciaController.rdIndAgrupamento.cmbItemLocalidade = Localidade
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.label = Tipo de Relatório:
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemData = Bilhetes Devolvidos
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemLocalidade = GAPs Devolvidos
relatorioDevolucaoBilhetesAgenciaController.tipo.lbTipo = Tipo
relatorioDevolucaoBilhetesAgenciaController.tipo.lbFiscal = Fiscal
relatorioDevolucaoBilhetesAgenciaController.tipo.lbFinanceiro = Financeiro
relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado = Consolidado
#Reporte Acompanhamento Equivalentes #Reporte Acompanhamento Equivalentes
relatorioAcompanhamentoEquivalentesController.window.title = Reporte de acompañamiento de equivalentes relatorioAcompanhamentoEquivalentesController.window.title = Reporte de acompañamiento de equivalentes

View File

@ -583,8 +583,10 @@ busquedaRelatorioRDIController.seleciona.estado = Deve ser selecionado ao menos
#Devolução de Bilhetes #Devolução de Bilhetes
relatorioDevolucaoBilhetesAgenciaController.window.title = Relatório de Devolução de Bilhetes relatorioDevolucaoBilhetesAgenciaController.window.title = Relatório de Devolução de Bilhetes
relatorioDevolucaoBilhetesAgenciaController.lbDataIni.value = Data Inicial relatorioDevolucaoBilhetesAgenciaController.lbDataVendaIni.value = DT Venda Inicial
relatorioDevolucaoBilhetesAgenciaController.lbDataFin.value = Data Final relatorioDevolucaoBilhetesAgenciaController.lbDataVendaFin.value = DT Venda Final
relatorioDevolucaoBilhetesAgenciaController.lbDataDevolucaoIni.value = DT Devolução Inicial
relatorioDevolucaoBilhetesAgenciaController.lbDataDevolucaoFin.value = DT Devolução Final
relatorioDevolucaoBilhetesAgenciaController.lbEstado.value = Estado relatorioDevolucaoBilhetesAgenciaController.lbEstado.value = Estado
relatorioDevolucaoBilhetesAgenciaController.lbPuntoVenta.value = Agência relatorioDevolucaoBilhetesAgenciaController.lbPuntoVenta.value = Agência
relatorioDevolucaoBilhetesAgenciaController.btnPesquisa.label = Pesquisar relatorioDevolucaoBilhetesAgenciaController.btnPesquisa.label = Pesquisar
@ -603,7 +605,8 @@ relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.label = Tipo de Re
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemData = Bilhetes Devolvidos relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemData = Bilhetes Devolvidos
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemLocalidade = GAPs Devolvidos relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemLocalidade = GAPs Devolvidos
relatorioDevolucaoBilhetesAgenciaController.tipo.lbTipo = Tipo relatorioDevolucaoBilhetesAgenciaController.tipo.lbTipo = Tipo
relatorioDevolucaoBilhetesAgenciaController.tipo.lbAnalitico = Analítico relatorioDevolucaoBilhetesAgenciaController.tipo.lbFiscal = Fiscal
relatorioDevolucaoBilhetesAgenciaController.tipo.lbFinanceiro = Financeiro
relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado = Consolidado relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado = Consolidado
#Relatório Acompanhamento Equivalentes #Relatório Acompanhamento Equivalentes

View File

@ -18,16 +18,28 @@
<rows> <rows>
<row> <row>
<label <label
value="${c:l('relatorioDevolucaoBilhetesAgenciaController.lbDataIni.value')}" /> value="${c:l('relatorioDevolucaoBilhetesAgenciaController.lbDataVendaIni.value')}" />
<datebox id="datInicial" width="90%" <datebox id="datInicial" width="90%"
format="dd/MM/yyyy" constraint="no empty" format="dd/MM/yyyy" constraint="no empty"
maxlength="10" /> maxlength="10" />
<label <label
value="${c:l('relatorioDevolucaoBilhetesAgenciaController.lbDataFin.value')}" /> value="${c:l('relatorioDevolucaoBilhetesAgenciaController.lbDataVendaFin.value')}" />
<datebox id="datFinal" width="90%" <datebox id="datFinal" width="90%"
format="dd/MM/yyyy" constraint="no empty" format="dd/MM/yyyy" constraint="no empty"
maxlength="10" /> maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioDevolucaoBilhetesAgenciaController.lbDataDevolucaoIni.value')}" />
<datebox id="datDevolucaoInicial" width="90%"
format="dd/MM/yyyy"
maxlength="10" />
<label
value="${c:l('relatorioDevolucaoBilhetesAgenciaController.lbDataDevolucaoFin.value')}" />
<datebox id="datDevolucaoFinal" width="90%"
format="dd/MM/yyyy"
maxlength="10" />
</row> </row>
<row> <row>
@ -108,9 +120,11 @@
<label <label
value="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbTipo')}" /> value="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbTipo')}" />
<radiogroup> <radiogroup>
<radio id="rAnalitico" <radio id="rFiscal"
label="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbAnalitico')}" label="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbFiscal')}"
checked="true" /> checked="true" />
<radio id="rFinanceiro"
label="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbFinanceiro')}" />
<radio id="rConsolidado" <radio id="rConsolidado"
label="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado')}" /> label="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado')}" />
</radiogroup> </radiogroup>