fixes bug #9167
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@69799 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d45763340d
commit
84b2d18236
|
@ -72,40 +72,24 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
|
|||
while (rset.next()) {
|
||||
|
||||
DevolucaoBilhetes db = new DevolucaoBilhetes();
|
||||
db.setEstado((String) rset.getObject("ESTADO"));
|
||||
db.setAidf((String) rset.getObject("AIDF"));
|
||||
db.setNumFolioSistema((String) rset.getObject("NUMFOLIOSISTEMA"));
|
||||
db.setSerieSubSerie((String) rset.getObject("SERIE_SUBSERIE"));
|
||||
db.setFolio((String) rset.getObject("FOLIO"));
|
||||
db.setUf((String) rset.getObject("UF"));
|
||||
db.setFechorVenta((String) rset.getObject("FECHOR_VENTA"));
|
||||
db.setEstadoId(rset.getObject("ESTADO_ID") == null ? null : ((BigDecimal) rset.getObject("ESTADO_ID")).intValue());
|
||||
db.setIcms((BigDecimal) rset.getObject("ICMS"));
|
||||
db.setPrecioBase((BigDecimal) rset.getObject("PRECIOBASE"));
|
||||
db.setPrecioPagado((BigDecimal) rset.getObject("PRECIOPAGADO"));
|
||||
db.setEmpresaId(rset.getObject("EMPRESA_ID") == null ? null : ((BigDecimal) rset.getObject("EMPRESA_ID")).intValue());
|
||||
db.setEmpresa((String) rset.getObject("NOMB_EMPRESA"));
|
||||
db.setNumpuntoventa((String) rset.getObject("NUMPUNTOVENTA"));
|
||||
db.setTotalBilhete(rset.getBigDecimal("TOTAL"));
|
||||
|
||||
BigDecimal valorIcms = BigDecimal.ZERO;
|
||||
valorIcms = db.getPrecioPagado().multiply(db.getIcms().divide(BigDecimal.valueOf(100)));
|
||||
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 = ((BigDecimal) rset.getObject("IS_ESTADUAL")).equals(BigDecimal.ZERO) ? false : true;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -130,17 +114,14 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
|
|||
sql.append(" B.PRECIOBASE AS PRECIOBASE, ");
|
||||
sql.append(" E.NOMBEMPRESA AS NOMB_EMPRESA, ");
|
||||
sql.append(" E.EMPRESA_ID AS EMPRESA_ID, ");
|
||||
sql.append(" EST.ESTADO_ID AS ESTADO_ID, ");
|
||||
sql.append(" EST.NOMBESTADO AS ESTADO, ");
|
||||
sql.append(" PTV.NUMPUNTOVENTA AS NUMPUNTOVENTA, ");
|
||||
sql.append(" EST.CVEESTADO AS UF, ");
|
||||
sql.append(" EI.ICMS AS ICMS, ");
|
||||
sql.append(" NVL(EI.ICMS,0) AS ICMS, ");
|
||||
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_VENTA, ");
|
||||
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(" 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 EMPRESA E ON E.EMPRESA_ID = B.MARCA_ID ");
|
||||
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 ORIGEM ON (B.ORIGEN_ID = ORIGEM.PARADA_ID ) ");
|
||||
sql.append("INNER JOIN PARADA DESTINO ON (B.DESTINO_ID = DESTINO.PARADA_ID ) ");
|
||||
|
@ -149,11 +130,9 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
|
|||
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 EMPRESA_IMPOSTO EI ON EST.ESTADO_ID = EI.ESTADO_ID ");
|
||||
sql.append(" AND EI.EMPRESA_ID = B.MARCA_ID ");
|
||||
sql.append(" AND EI.EMPRESA_ID = M.EMPRESA_ID ");
|
||||
sql.append(" AND EI.ACTIVO = 1 ");
|
||||
sql.append("LEFT JOIN AIDF AIDF ON ((AIDF.SERIE = B.NUMSERIEPREIMPRESA OR ");
|
||||
sql.append(" AIDF.SERIE = SUBSTR(B.NUMSERIEPREIMPRESA,1,INSTR(B.NUMSERIEPREIMPRESA,'-',1)-1)) ");
|
||||
sql.append(" AND (B.NUMFOLIOPREIMPRESO BETWEEN AIDF.FORMINICIAL AND AIDF.FORMFINAL)) ");
|
||||
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("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') ");
|
||||
|
@ -161,24 +140,7 @@ public class RelatorioDevolucaoBilhetes extends Relatorio {
|
|||
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("GROUP BY COALESCE(AIDF.ACFISCAL,SUBSTR(R4.NUMSERIE20, -6, 7)), ");
|
||||
sql.append(" COALESCE(B.NUMFOLIOSISTEMA, B.NUMOPERACION), ");
|
||||
sql.append(" CASE WHEN R4.NUMSERIE20 IS NULL THEN B.NUMSERIEPREIMPRESA ELSE NULL END, ");
|
||||
sql.append(" B.NUMFOLIOPREIMPRESO, ");
|
||||
sql.append(" B.PRECIOPAGADO, ");
|
||||
sql.append(" B.PRECIOBASE, ");
|
||||
sql.append(" E.NOMBEMPRESA, ");
|
||||
sql.append(" E.EMPRESA_ID, ");
|
||||
sql.append(" EST.ESTADO_ID, ");
|
||||
sql.append(" EST.NOMBESTADO, ");
|
||||
sql.append(" EST.CVEESTADO, ");
|
||||
sql.append(" EI.ICMS, ");
|
||||
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY'), ");
|
||||
sql.append(" (CASE WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN 1 ELSE 0 END), ");
|
||||
sql.append(" EI.PORCREDMUNICIPAL, ");
|
||||
sql.append(" EI.PORCREDESTADUAL, ");
|
||||
sql.append(" NVL(B.PRECIOPAGADO,0) + NVL(B.IMPORTEOUTROS,0) + NVL(B.IMPORTEPEDAGIO,0) + NVL(B.IMPORTESEGURO,0) + NVL(B.IMPORTETAXAEMBARQUE,0) ");
|
||||
sql.append("ORDER BY NOMB_EMPRESA, ESTADO, FECHOR_VENTA ");
|
||||
sql.append("ORDER BY NOMB_EMPRESA, FECHOR_VENTA, UF");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,152 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
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 RelatorioDevolucaoBilhetesConsolidado extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioDevolucaoBilhetesConsolidado.class);
|
||||
|
||||
public RelatorioDevolucaoBilhetesConsolidado(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");
|
||||
|
||||
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);
|
||||
log.debug(sql);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||
ResultSet rset = null;
|
||||
|
||||
stmt.setString("DATA_INICIO", DateUtil.getStringDate(((Timestamp) parametros.get("DATA_INICIO")), "dd/MM/yyyy HH:mm:ss"));
|
||||
stmt.setString("DATA_FINAL", DateUtil.getStringDate(((Timestamp) parametros.get("DATA_FINAL")), "dd/MM/yyyy HH:mm:ss"));
|
||||
|
||||
rset = stmt.executeQuery();
|
||||
|
||||
List<DevolucaoBilhetes> lsDev = new ArrayList<DevolucaoBilhetes>();
|
||||
while (rset.next()) {
|
||||
|
||||
DevolucaoBilhetes db = new DevolucaoBilhetes();
|
||||
db.setFechorVenta((String) rset.getObject("FECHOR_VENTA"));
|
||||
db.setIcms((BigDecimal) rset.getObject("ICMS"));
|
||||
db.setEmpresaId(rset.getObject("EMPRESA_ID") == null ? null : ((BigDecimal) rset.getObject("EMPRESA_ID")).intValue());
|
||||
db.setEmpresa((String) rset.getObject("NOMB_EMPRESA"));
|
||||
db.setNumpuntoventa((String) rset.getObject("NUMPUNTOVENTA"));
|
||||
db.setNombpuntoventa((String) rset.getObject("NOMBPUNTOVENTA"));
|
||||
db.setTotalBilhete(rset.getBigDecimal("TOTAL"));
|
||||
db.setTotalQtdeBilhetes(rset.getInt("TOTAL_QTDE_BILHETE"));
|
||||
db.setPrecioBase((BigDecimal) rset.getObject("PRECIOBASE"));
|
||||
db.setPrecioPagado((BigDecimal) rset.getObject("PRECIOPAGADO"));
|
||||
|
||||
BigDecimal valorIcms = BigDecimal.ZERO;
|
||||
valorIcms = db.getPrecioPagado().multiply(db.getIcms().divide(BigDecimal.valueOf(100)));
|
||||
db.setValorIcms(valorIcms);
|
||||
|
||||
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) {
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("SELECT E.NOMBEMPRESA AS NOMB_EMPRESA, ");
|
||||
sql.append(" E.EMPRESA_ID AS EMPRESA_ID, ");
|
||||
sql.append(" PTV.NUMPUNTOVENTA AS NUMPUNTOVENTA, ");
|
||||
sql.append(" PTV.NOMBPUNTOVENTA AS NOMBPUNTOVENTA, ");
|
||||
sql.append(" NVL(EI.ICMS,0) AS ICMS, ");
|
||||
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') AS FECHOR_VENTA, ");
|
||||
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) + NVL(B.IMPORTEOUTROS,0) + NVL(B.IMPORTEPEDAGIO,0) + NVL(B.IMPORTESEGURO,0) + NVL(B.IMPORTETAXAEMBARQUE,0)) AS TOTAL, ");
|
||||
sql.append(" COUNT(COALESCE(B.NUMFOLIOSISTEMA, B.NUMOPERACION)) AS TOTAL_QTDE_BILHETE ");
|
||||
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 ORIGEM ON (B.ORIGEN_ID = ORIGEM.PARADA_ID ) ");
|
||||
sql.append("INNER JOIN PARADA DESTINO ON (B.DESTINO_ID = DESTINO.PARADA_ID ) ");
|
||||
sql.append("INNER JOIN CIUDAD CO ON (CO.CIUDAD_ID = ORIGEM.CIUDAD_ID ) ");
|
||||
sql.append("INNER JOIN CIUDAD CD ON (CD.CIUDAD_ID = DESTINO.CIUDAD_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 EMPRESA_IMPOSTO EI ON EST.ESTADO_ID = EI.ESTADO_ID ");
|
||||
sql.append(" AND EI.EMPRESA_ID = M.EMPRESA_ID ");
|
||||
sql.append(" AND EI.ACTIVO = 1 ");
|
||||
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("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.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("GROUP BY E.NOMBEMPRESA, ");
|
||||
sql.append(" E.EMPRESA_ID, ");
|
||||
sql.append(" PTV.NUMPUNTOVENTA, ");
|
||||
sql.append(" PTV.NOMBPUNTOVENTA, ");
|
||||
sql.append(" NVL(EI.ICMS,0), ");
|
||||
sql.append(" TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') ");
|
||||
sql.append("ORDER BY NOMB_EMPRESA, FECHOR_VENTA ");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#labels
|
||||
label.titulo=Relatório de Devolução de Bilhetes Consolidado
|
||||
label.periodo=Período:
|
||||
label.ate=até
|
||||
label.filtros=Fitros:
|
||||
label.aidf=AIDF(Bilhetes Manuais)
|
||||
label.serieSubs=Série/Subs.(ECF)
|
||||
label.numero=Número
|
||||
label.vrContabil=Vr. Contábil
|
||||
label.baseCalc=Base Calc.
|
||||
label.aliquota=Alíquota
|
||||
label.icms=ICMS
|
||||
label.pagina=Página:
|
||||
label.total=Total
|
||||
label.qtdeBilhetes=Quantidade de Bilhetes
|
||||
label.totalBilhete=Total Bilhete
|
||||
label.numpuntoventa=Nº Agência
|
||||
label.nombpuntoventa=Agência
|
|
@ -0,0 +1,21 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#labels
|
||||
label.titulo=Relatório de Devolução de Bilhetes Consolidado
|
||||
label.periodo=Período:
|
||||
label.ate=até
|
||||
label.filtros=Fitros:
|
||||
label.aidf=AIDF(Bilhetes Manuais)
|
||||
label.serieSubs=Série/Subs.(ECF)
|
||||
label.numero=Número
|
||||
label.vrContabil=Vr. Contábil
|
||||
label.baseCalc=Base Calc.
|
||||
label.aliquota=Alíquota
|
||||
label.icms=ICMS
|
||||
label.pagina=Página:
|
||||
label.total=Total
|
||||
label.qtdeBilhetes=Quantidade de Bilhetes
|
||||
label.totalBilhete=Total Bilhete
|
||||
label.numpuntoventa=Nº Agência
|
||||
label.nombpuntoventa=Agência
|
|
@ -2,6 +2,7 @@
|
|||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#labels
|
||||
label.titulo=Relatório de Devolução de Bilhetes
|
||||
label.periodo=Período:
|
||||
label.ate=até
|
||||
label.filtros=Fitros:
|
||||
|
@ -14,6 +15,8 @@ label.aliquota=Al
|
|||
label.icms=ICMS
|
||||
label.pagina=Página:
|
||||
label.total=Total
|
||||
label.qtdeBilhetes=Quantidade de Bilhetes:
|
||||
label.qtdeBilhetes=Quantidade de Bilhetes
|
||||
label.totalBilhete=Total Bilhete
|
||||
label.numeroBilhete=Nº Bilhete
|
||||
label.numeroBilhete=Nº Bilhete
|
||||
label.numpuntoventa=Nº Agência
|
||||
label.uf=UF
|
|
@ -2,6 +2,7 @@
|
|||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#labels
|
||||
label.titulo=Relatório de Devolução de Bilhetes
|
||||
label.periodo=Período:
|
||||
label.ate=até
|
||||
label.filtros=Fitros:
|
||||
|
@ -14,6 +15,8 @@ label.aliquota=Al
|
|||
label.icms=ICMS
|
||||
label.pagina=Página:
|
||||
label.total=Total
|
||||
label.qtdeBilhetes=Quantidade de Bilhetes:
|
||||
label.qtdeBilhetes=Quantidade de Bilhetes
|
||||
label.totalBilhete=Total Bilhete
|
||||
label.numeroBilhete=Nº Bilhete
|
||||
label.numeroBilhete=Nº Bilhete
|
||||
label.numpuntoventa=Nº Agência
|
||||
label.uf=UF
|
Binary file not shown.
|
@ -1,8 +1,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="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="1.5"/>
|
||||
<property name="ireport.x" value="506"/>
|
||||
<property name="ireport.y" value="100"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="7"/>
|
||||
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
|
||||
<style name="table">
|
||||
<box>
|
||||
|
@ -27,7 +27,6 @@
|
|||
<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"/>
|
||||
|
@ -54,6 +53,7 @@
|
|||
<field name="estornoMunicipal" class="java.math.BigDecimal"/>
|
||||
<field name="estornoEstadual" class="java.math.BigDecimal"/>
|
||||
<field name="totalBilhete" class="java.math.BigDecimal"/>
|
||||
<field name="numpuntoventa" class="java.lang.String"/>
|
||||
<variable name="precioPagado_1" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{precioPagado}]]></variableExpression>
|
||||
</variable>
|
||||
|
@ -69,15 +69,6 @@
|
|||
<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>
|
||||
<variable name="vTotalBilhete" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{totalBilhete}]]></variableExpression>
|
||||
</variable>
|
||||
|
@ -89,7 +80,7 @@
|
|||
<groupHeader>
|
||||
<band height="15">
|
||||
<textField>
|
||||
<reportElement x="2" y="0" width="138" height="14" uuid="3055dd3d-ea00-4d23-9a0d-7b86d4b4979f"/>
|
||||
<reportElement x="2" y="0" width="329" height="14" uuid="3055dd3d-ea00-4d23-9a0d-7b86d4b4979f"/>
|
||||
<textElement>
|
||||
<font size="9" isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -98,62 +89,6 @@
|
|||
</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="800" 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="728" y="19" width="72" height="17" uuid="cf8b4127-af83-4ef1-9913-fbd00f0ffe35"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{estornoMunicipal_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement x="728" y="2" width="72" height="17" uuid="c9cec4e3-dd36-4806-b32f-010b4f2c4705"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{estornoEstadual_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement x="728" y="36" width="72" height="16" uuid="693122b4-eb19-463d-8061-76a4b58b458f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaEstorno}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<group name="data_group">
|
||||
<groupExpression><![CDATA[$F{fechorVenta}]]></groupExpression>
|
||||
<groupHeader>
|
||||
|
@ -204,7 +139,7 @@
|
|||
<textFieldExpression><![CDATA["Subtotal - " + $F{fechorVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="426" y="1" width="111" height="14" uuid="49c16eb0-9d9d-4e17-a1a7-20391bde4035"/>
|
||||
<reportElement x="457" y="1" width="83" height="14" uuid="49c16eb0-9d9d-4e17-a1a7-20391bde4035"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
|
@ -224,7 +159,7 @@
|
|||
<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>
|
||||
<textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement mode="Transparent" x="593" y="16" width="209" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="1e340cae-0c0a-48a3-b2b8-6667a44078af"/>
|
||||
|
@ -232,7 +167,7 @@
|
|||
<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>
|
||||
<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"/>
|
||||
|
@ -309,28 +244,28 @@
|
|||
</graphicElement>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="0" y="1" width="140" height="14" uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270"/>
|
||||
<reportElement x="116" y="1" width="117" 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="265" y="1" width="96" height="14" uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb"/>
|
||||
<reportElement x="302" y="1" width="96" 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="361" y="2" width="59" height="14" uuid="60cc6a71-4f40-49de-9f78-08b65931d16d"/>
|
||||
<reportElement x="398" 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="610" y="2" width="60" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/>
|
||||
<reportElement mode="Transparent" x="610" y="1" width="60" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/>
|
||||
<textElement textAlignment="Right" 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"/>
|
||||
|
@ -338,7 +273,7 @@
|
|||
<textFieldExpression><![CDATA[$R{label.baseCalc}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement mode="Transparent" x="670" y="2" width="58" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e647ff9e-f7e2-4c90-a75f-d831980391b6"/>
|
||||
<reportElement mode="Transparent" x="670" y="1" width="58" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e647ff9e-f7e2-4c90-a75f-d831980391b6"/>
|
||||
<textElement textAlignment="Right" 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"/>
|
||||
|
@ -346,7 +281,7 @@
|
|||
<textFieldExpression><![CDATA[$R{label.aliquota}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement mode="Transparent" x="728" y="2" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="a1a4be94-54f7-42f0-bdd3-5b0b2d6a37c4"/>
|
||||
<reportElement mode="Transparent" x="728" y="1" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="a1a4be94-54f7-42f0-bdd3-5b0b2d6a37c4"/>
|
||||
<textElement textAlignment="Right" 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"/>
|
||||
|
@ -354,39 +289,53 @@
|
|||
<textFieldExpression><![CDATA[$R{label.icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="540" y="2" width="70" height="14" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/>
|
||||
<reportElement x="540" y="1" width="70" height="14" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.vrContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="426" y="2" width="111" height="14" uuid="2b804e18-71b2-44b5-89c3-4393430c94f3"/>
|
||||
<reportElement x="457" y="1" width="83" height="14" uuid="2b804e18-71b2-44b5-89c3-4393430c94f3"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.totalBilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="142" y="1" width="118" height="14" uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b"/>
|
||||
<reportElement x="233" y="1" width="69" height="14" uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b"/>
|
||||
<textElement markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.numeroBilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="1" y="1" width="85" height="14" uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf"/>
|
||||
<textElement markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="86" y="1" width="30" height="14" uuid="2b0943fd-f6c2-414b-b6d1-cb8ad1734e06"/>
|
||||
<textElement markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.uf}]]></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"/>
|
||||
<reportElement x="116" y="0" width="117" height="14" uuid="a34502fa-62b7-44b6-9218-90034054b7ac"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{aidf}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="265" y="0" width="96" height="14" uuid="73fc6712-d370-49e2-ac39-55e2fa5ce9e2"/>
|
||||
<reportElement x="302" y="0" width="96" height="14" uuid="73fc6712-d370-49e2-ac39-55e2fa5ce9e2"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
|
@ -400,7 +349,7 @@
|
|||
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern=" ###0.00">
|
||||
<reportElement x="426" y="0" width="111" height="14" uuid="a1bcec7c-0ca6-4f9f-a4c7-9757842b1b4f"/>
|
||||
<reportElement x="457" y="0" width="83" height="14" uuid="a1bcec7c-0ca6-4f9f-a4c7-9757842b1b4f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
|
@ -428,19 +377,33 @@
|
|||
<textFieldExpression><![CDATA[$F{valorIcms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="361" y="0" width="59" height="14" uuid="755796e0-1c3a-470a-a226-35e01d006653"/>
|
||||
<reportElement x="398" y="0" width="59" height="14" uuid="755796e0-1c3a-470a-a226-35e01d006653"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{folio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="142" y="0" width="118" height="14" uuid="46bc3410-c01a-4e91-a8e9-17f02536e23d"/>
|
||||
<reportElement x="233" y="0" width="69" height="14" uuid="46bc3410-c01a-4e91-a8e9-17f02536e23d"/>
|
||||
<textElement markup="none">
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="1" y="0" width="85" height="14" uuid="74a5a183-6fe2-4f22-8b51-b54197aa3582"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="86" y="0" width="30" height="14" uuid="8a750495-30d4-4093-b08e-1d487fe9384b"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{uf}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<lastPageFooter>
|
||||
|
@ -497,7 +460,7 @@
|
|||
<textFieldExpression><![CDATA[$V{valorIcms_total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="426" y="1" width="111" height="14" uuid="80bddbda-0eec-4839-9510-35800aa6d742"/>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="457" y="1" width="83" height="14" uuid="80bddbda-0eec-4839-9510-35800aa6d742"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,442 @@
|
|||
<?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">
|
||||
<property name="ireport.zoom" value="1.5"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="7"/>
|
||||
<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="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="precioPagado" class="java.math.BigDecimal"/>
|
||||
<field name="precioBase" class="java.math.BigDecimal"/>
|
||||
<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="totalBilhete" class="java.math.BigDecimal"/>
|
||||
<field name="numpuntoventa" class="java.lang.String"/>
|
||||
<field name="totalQtdeBilhetes" class="java.lang.Integer"/>
|
||||
<field name="nombpuntoventa" class="java.lang.String"/>
|
||||
<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="qtdeBilhetes" class="java.lang.Integer" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{totalQtdeBilhetes}]]></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="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>
|
||||
<variable name="vSubQtdeBilhete" class="java.lang.Integer" resetType="Group" resetGroup="data_group" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{totalQtdeBilhetes}]]></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="9" 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="9" 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">
|
||||
<textField pattern="###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="610" y="1" width="60" height="14" uuid="67bdceb4-d6ed-42c5-871f-d809ffec832b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{precioPagado_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="540" y="1" width="70" height="14" uuid="943bc881-8248-4da5-999a-62b2f67a573a"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{precioPagado_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="1" y="0" width="800" height="1" uuid="eb29c074-35dc-47d8-855b-78b95676b7ae"/>
|
||||
</line>
|
||||
<textField pattern="###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="728" y="2" width="72" height="13" uuid="6e65196e-b844-4c3d-9697-44aadad52344"/>
|
||||
<textElement textAlignment="Right">
|
||||
<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>
|
||||
<textField pattern="###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="429" y="1" width="111" height="14" uuid="49c16eb0-9d9d-4e17-a1a7-20391bde4035"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vSubTotalBilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement x="318" y="1" width="111" height="14" uuid="11ecbdda-a422-4d1d-b5a3-c6ddfc2504cc"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vSubQtdeBilhete}]]></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="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>
|
||||
<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>
|
||||
<reportElement x="1" y="45" width="800" 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="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>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="16">
|
||||
<line>
|
||||
<reportElement x="0" y="0" width="800" height="1" uuid="04a75f17-3686-484b-be43-7b7e22e9def7"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="0" y="15" width="800" height="1" uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement mode="Transparent" x="610" y="1" width="60" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/>
|
||||
<textElement textAlignment="Right" 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="670" y="1" width="58" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e647ff9e-f7e2-4c90-a75f-d831980391b6"/>
|
||||
<textElement textAlignment="Right" 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="728" y="1" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="a1a4be94-54f7-42f0-bdd3-5b0b2d6a37c4"/>
|
||||
<textElement textAlignment="Right" 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="540" y="1" width="70" height="14" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.vrContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="429" y="1" width="111" height="14" uuid="2b804e18-71b2-44b5-89c3-4393430c94f3"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.totalBilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="1" y="1" width="85" height="14" uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf"/>
|
||||
<textElement markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="273" y="1" width="156" height="14" uuid="6d369259-a204-48aa-979f-9db30aa5a2cf"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.qtdeBilhetes}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="86" y="1" width="150" height="14" uuid="c0eec461-3a56-4f54-b356-0e529f0e879d"/>
|
||||
<textElement markup="none">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.nombpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="14">
|
||||
<textField pattern=" ###0.00">
|
||||
<reportElement x="540" y="0" width="70" height="14" uuid="b14dbaab-e9a1-4aae-a12c-6305da9d2f80"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern=" ###0.00">
|
||||
<reportElement x="429" y="0" width="111" height="14" uuid="a1bcec7c-0ca6-4f9f-a4c7-9757842b1b4f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{totalBilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement x="670" y="0" width="58" height="14" uuid="3285bf53-66f1-4dc2-b3db-d12875efa546"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement x="610" y="0" width="60" height="14" uuid="6772d6a9-3611-4cb6-9c3b-f78dc3fb5dc0"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern=" ###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="728" y="0" width="72" height="14" uuid="e948b0e2-03c4-47c9-91f1-90d3a3fc4bf4"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorIcms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="1" y="0" width="85" height="14" uuid="74a5a183-6fe2-4f22-8b51-b54197aa3582"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement x="318" y="0" width="111" height="14" uuid="fc8138ad-7ce7-4b17-a388-db4677a134c4"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{totalQtdeBilhetes}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="86" y="0" width="232" height="14" uuid="ae351b20-bbe0-40f1-ae7e-590a10a8b3a2"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nombpuntoventa}]]></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="9"/>
|
||||
</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 isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="318" y="1" width="111" height="14" uuid="0dcac787-43f7-4e9f-84c8-06567671ddb7"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{qtdeBilhetes}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="210" y="1" width="108" height="14" uuid="fba1bd88-a15f-4d9f-93fb-9abbfaa5429e"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</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">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="540" y="1" width="70" height="14" uuid="5bb73e4d-a51b-4a04-bed0-8fa3eb7f8553"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{precioPagado_total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="610" y="1" width="60" height="14" uuid="7c3ce565-f549-48d2-815d-9b4d7a39b1ca"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{precioPagado_total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="728" y="2" width="72" height="14" uuid="7a2dbe9b-868e-46db-b3b3-6e759d4dba98"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{valorIcms_total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="429" y="1" width="108" height="14" uuid="80bddbda-0eec-4839-9510-35800aa6d742"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</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="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -18,12 +18,15 @@ public class DevolucaoBilhetes {
|
|||
private BigDecimal icms;
|
||||
private BigDecimal valorIcms;
|
||||
private String fechorVenta;
|
||||
private String numpuntoventa;
|
||||
private String nombpuntoventa;
|
||||
|
||||
BigDecimal porcMunicipal;
|
||||
BigDecimal porcEstadual;
|
||||
BigDecimal estornoMunicipal;
|
||||
BigDecimal estornoEstadual;
|
||||
private BigDecimal totalBilhete;
|
||||
private Integer totalQtdeBilhetes;
|
||||
|
||||
public String getAidf() {
|
||||
return aidf;
|
||||
|
@ -177,4 +180,28 @@ public class DevolucaoBilhetes {
|
|||
this.totalBilhete = totalBilhete;
|
||||
}
|
||||
|
||||
public String getNumpuntoventa() {
|
||||
return numpuntoventa;
|
||||
}
|
||||
|
||||
public void setNumpuntoventa(String numpuntoventa) {
|
||||
this.numpuntoventa = numpuntoventa;
|
||||
}
|
||||
|
||||
public Integer getTotalQtdeBilhetes() {
|
||||
return totalQtdeBilhetes;
|
||||
}
|
||||
|
||||
public void setTotalQtdeBilhetes(Integer totalQtdeBilhetes) {
|
||||
this.totalQtdeBilhetes = totalQtdeBilhetes;
|
||||
}
|
||||
|
||||
public String getNombpuntoventa() {
|
||||
return nombpuntoventa;
|
||||
}
|
||||
|
||||
public void setNombpuntoventa(String nombpuntoventa) {
|
||||
this.nombpuntoventa = nombpuntoventa;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -24,14 +24,15 @@ import org.zkoss.zul.Combobox;
|
|||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDevolucaoBilhetes;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDevolucaoBilhetesConsolidado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -56,8 +57,6 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
|
|||
@Autowired
|
||||
private EstadoService estadoService;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||
|
@ -76,6 +75,9 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
|
|||
private Combobox cmbPuntoVenta;
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
|
||||
private Radio rAnalitico;
|
||||
private Radio rConsolidado;
|
||||
|
||||
private void executarPesquisa() {
|
||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<PuntoVenta>(PuntoVenta.class,
|
||||
|
@ -106,7 +108,6 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
|
|||
|
||||
parametros.put("DATA_INICIO", new Timestamp((DateUtil.inicioFecha((java.util.Date) this.datInicial.getValue()).getTime())));
|
||||
parametros.put("DATA_FINAL", new Timestamp((DateUtil.fimFecha((java.util.Date) this.datFinal.getValue()).getTime())));
|
||||
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioDevolucaoBilhetesAgenciaController.window.title"));
|
||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
|
||||
filtro.append("Agência(s): ");
|
||||
|
@ -143,7 +144,12 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
|
|||
|
||||
parametros.put("FILTROS", filtro.toString());
|
||||
|
||||
Relatorio relatorio = new RelatorioDevolucaoBilhetes(parametros, dataSourceRead.getConnection());
|
||||
Relatorio relatorio = null;
|
||||
if(rAnalitico.isChecked()) {
|
||||
relatorio = new RelatorioDevolucaoBilhetes(parametros, dataSourceRead.getConnection());
|
||||
} else if(rConsolidado.isChecked()) {
|
||||
relatorio = new RelatorioDevolucaoBilhetesConsolidado(parametros, dataSourceRead.getConnection());
|
||||
}
|
||||
|
||||
Map<String, Relatorio> args = new HashMap<String, Relatorio>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
@ -155,7 +161,7 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
|
|||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEstado = estadoService.obtenerTodos();
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
|
|
|
@ -512,6 +512,31 @@ busquedaImpressaoRMDController.labelRadio.radECF = ECF
|
|||
busquedaImpressaoRMDController.select.RMD = É necessario selecionar um RMD
|
||||
busquedaImpressaoRMDController.MSG.gravarRMDPergunta = Deseja gravar nos registros de vendas, o vínculo com o numero de RMD selecionado?
|
||||
|
||||
#Devolução de Bilhetes
|
||||
relatorioDevolucaoBilhetesAgenciaController.window.title = Relatório de Devolução de Bilhetes
|
||||
relatorioDevolucaoBilhetesAgenciaController.lbDataIni.value = Data Inicial
|
||||
relatorioDevolucaoBilhetesAgenciaController.lbDataFin.value = Data 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.lbAnalitico = Analítico
|
||||
relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado = Consolidado
|
||||
|
||||
#Reporte Acompanhamento Equivalentes
|
||||
relatorioAcompanhamentoEquivalentesController.window.title = Reporte de acompañamiento de equivalentes
|
||||
relatorioAcompanhamentoEquivalentesController.lbMes.value = Mes/Ano
|
||||
|
|
|
@ -564,7 +564,9 @@ relatorioDevolucaoBilhetesAgenciaController.rdIndAgrupamento.cmbItemLocalidade =
|
|||
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.label = Tipo de Relatório:
|
||||
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemData = Bilhetes Devolvidos
|
||||
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemLocalidade = GAPs Devolvidos
|
||||
|
||||
relatorioDevolucaoBilhetesAgenciaController.tipo.lbTipo = Tipo
|
||||
relatorioDevolucaoBilhetesAgenciaController.tipo.lbAnalitico = Analítico
|
||||
relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado = Consolidado
|
||||
|
||||
#Relatório Acompanhamento Equivalentes
|
||||
relatorioAcompanhamentoEquivalentesController.window.title = Relatório de Acompanhamento de Equivalentes
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
</listhead>
|
||||
</listbox>
|
||||
|
||||
<cell colspan="2" rowspan="2">
|
||||
<cell colspan="2" rowspan="1" valign="middle">
|
||||
<borderlayout height="150px">
|
||||
<center border="0">
|
||||
<listbox id="puntoVentaSelList"
|
||||
|
@ -103,6 +103,18 @@
|
|||
</borderlayout>
|
||||
</cell>
|
||||
</row>
|
||||
|
||||
<row spans="1,4">
|
||||
<label
|
||||
value="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbTipo')}" />
|
||||
<radiogroup>
|
||||
<radio id="rAnalitico"
|
||||
label="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbAnalitico')}"
|
||||
checked="true" />
|
||||
<radio id="rConsolidado"
|
||||
label="${c:l('relatorioDevolucaoBilhetesAgenciaController.tipo.lbConsolidado')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
|
|
Loading…
Reference in New Issue