fixes bug#22441

qua:
dev:

Feito mudanças no layout do relatorio

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@107551 d1611594-4594-4d17-8e1d-87c2c4800839
master
walace 2021-06-28 22:54:35 +00:00
parent ac3d9c7b90
commit 38b594394a
6 changed files with 300 additions and 97 deletions

View File

@ -86,8 +86,15 @@ public class RelatorioVendasCartoes extends Relatorio {
bean.setValor(rset.getBigDecimal("valor") != null ? rset.getBigDecimal("valor") : null);
bean.setAutorizacao(rset.getString("autorizacao") != null ? rset.getString("autorizacao") : null);
bean.setQtdParcelas(rset.getInt("qtdParcelas"));
valorTotal = valorTotal.add(bean.getValor() != null ? bean.getValor() : BigDecimal.ZERO);
bean.setNumeroPuntoVenta(rset.getInt("numeroPuntoVenta"));
bean.setNomePuntoVenta(rset.getString("nomePuntoVenta") != null ? rset.getString("nomePuntoVenta") : null);
bean.setDescOperadoraCartao(rset.getString("descOperadoraCartao") != null ? rset.getString("descOperadoraCartao") : null);
bean.setNSU(rset.getString("nsu") != null ? rset.getString("nsu") : null);
bean.setNumeroCartao(rset.getString("numeroCartao") != null ? rset.getString("numeroCartao") : null);
bean.setBandeira(rset.getString("bandeira") != null ? rset.getString("bandeira") : null);
bean.setEstabelecimento(rset.getString("estabelecimento") != null ? rset.getString("estabelecimento") : null);
bean.setTerminal(rset.getString("terminal") != null ? rset.getString("terminal") : null);
valorTotal = valorTotal.add(bean.getValor() != null ? bean.getValor() : BigDecimal.ZERO);
bean.setValorTotal(valorTotal);
list.add(bean);
@ -123,18 +130,34 @@ public class RelatorioVendasCartoes extends Relatorio {
StringBuilder sb = new StringBuilder();
sb.append("SELECT caja.descpago as descPagamento,");
sb.append(" to_char(caja.dataoperacao, 'ddMMyyyy') as dataOperacao,");
sb.append(" to_char(caja.dataoperacao, 'ddMMyyyy') as dataOperacao,");
sb.append(" caja.autorizacao as autorizacao,");
sb.append(" coalesce(caja.qtdparcelas, 1) as qtdParcelas ,");
sb.append(" trunc(caja.datavenda) as dataVenda, ");
sb.append(" sum(caja.preco) as valor ");
sb.append(" caja.datavenda as dataVenda, ");
sb.append(" sum(caja.preco) as valor, ");
sb.append(" caja.numeroPuntoVenta as numeroPuntoVenta, ");
sb.append(" caja.nomePuntoVenta as nomePuntoVenta, ");
sb.append(" caja.descoperadoracartao as descOperadoraCartao,");
sb.append(" caja.NSU as nsu,");
sb.append(" caja.numeroCartao as numeroCartao, ");
sb.append(" caja.bandeira as bandeira, ");
sb.append(" caja.estabelecimento as estabelecimento, ");
sb.append(" caja.terminal as terminal ");
sb.append("FROM");
sb.append(" (SELECT fp.descpago AS descpago,");
sb.append(" ct.fecoperacion AS dataoperacao,");
sb.append(" ct.numautorizacion AS autorizacao,");
sb.append(" ct.cantparcelas AS qtdparcelas,");
sb.append(" c.fechorventa AS datavenda,");
sb.append(" case when c.motivocancelacion_id is null then cfp.importe else cfp.importe * -1 end AS preco");
sb.append(" case when c.motivocancelacion_id is null then cfp.importe else cfp.importe * -1 end AS preco,");
sb.append(" pt.numpuntoventa as numeroPuntoVenta, ");
sb.append("pt.nombpuntoventa as nomePuntoVenta, ");
sb.append("ct.descoperadoracartao as descoperadoracartao, ");
sb.append("ct.nsu as NSU, ");
sb.append(" ct.numtarjeta as numeroCartao, ");
sb.append(" ct.tipotarjeta as bandeira, ");
sb.append(" est.numcaja as estabelecimento, ");
sb.append(" estSitef.numpdv as terminal ");
sb.append(" FROM caja c");
sb.append(" INNER JOIN caja_formapago cfp ON c.caja_id=cfp.caja_id AND cfp.activo = 1 ");
sb.append(" INNER JOIN marca ma on ma.marca_id = c.marca_id ");
@ -142,6 +165,8 @@ public class RelatorioVendasCartoes extends Relatorio {
sb.append(" INNER JOIN caja_det_pago cdp ON (c.caja_id = cdp.caja_id and cdp.cajaformapago_id = cfp.cajaformapago_id)");
sb.append(" INNER JOIN caja_tarjeta ct ON (ct.cajadetpago_id = cdp.cajadetpago_id)");
sb.append(" INNER JOIN punto_venta pt ON (pt.puntoventa_id = c.puntoventa_id) ");
sb.append(" INNER JOIN estacion est ON (est.estacion_id = c.estacion_id) ");
sb.append(" left JOIN estacion_sitef estSitef ON (estSitef.estacion_id = c.estacion_id) ");
sb.append(" WHERE c.indreimpresion = 0 ");
if(empresa!= null){
@ -182,8 +207,16 @@ public class RelatorioVendasCartoes extends Relatorio {
sb.append(" to_char(caja.dataoperacao, 'ddMMyyyy'),");
sb.append(" caja.autorizacao,");
sb.append(" caja.qtdparcelas,");
sb.append(" trunc(caja.datavenda) ");
sb.append("ORDER BY caja.descpago, trunc(caja.datavenda), caja.autorizacao");
sb.append(" caja.datavenda, ");
sb.append(" caja.numeroPuntoVenta , ");
sb.append(" caja.nomePuntoVenta, ");
sb.append(" caja.descoperadoracartao, ");
sb.append(" caja.NSU, ");
sb.append(" caja.numeroCartao, ");
sb.append(" caja.bandeira, ");
sb.append(" caja.estabelecimento, ");
sb.append(" caja.terminal ");
sb.append("ORDER BY caja.nomePuntoVenta, caja.datavenda ");
return sb.toString();
}

View File

@ -20,9 +20,19 @@ header.filtro.grupo=Grupo de Linhas\:
detail.dataOperacao=Data Operação
detail.dataVenda=Data Venda
detail.autorizacao=Autorização
detail.qtdParcelas=Quantidade Parcelas
detail.qtdParcelas=Parcelas
detail.valorTotal=Valor Total
detail.valor=Valor R$
detail.numeroAgencia=Número Agência
detail.nomeAgencia=Nome Agência
detail.horaVenda= Hora Venda
detail.bandeira = Bandeira
detail.nsu = NSU
detail.numeroCartao =Cartão
detail.estabelecimento=Estabelecimento
detail.valor = Valor
detail.descFormaPagamento=Forma Pago
detail.terminal = Terminal
#Group

View File

@ -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="RelatorioVendasCartoes" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ae2cbb01-bc79-4d18-8206-3b59273fe793">
<property name="ireport.zoom" value="4.177248169415656"/>
<property name="ireport.x" value="2573"/>
<property name="ireport.y" value="78"/>
<property name="ireport.zoom" value="3.138428376721015"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="212"/>
<parameter name="NOMBEMPRESA" class="java.lang.String"/>
<parameter name="DATA_INICIAL" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
@ -26,6 +26,13 @@
<field name="qtdParcelas" class="java.lang.Integer"/>
<field name="dataVenda" class="java.util.Date"/>
<field name="valor" class="java.math.BigDecimal"/>
<field name="numeroPuntoVenta" class="java.lang.Integer"/>
<field name="numeroCartao" class="java.lang.String"/>
<field name="NSU" class="java.lang.String"/>
<field name="bandeira" class="java.lang.String"/>
<field name="nomePuntoVenta" class="java.lang.String"/>
<field name="estabelecimento" class="java.lang.String"/>
<field name="terminal" class="java.lang.String"/>
<variable name="total_group" class="java.math.BigDecimal" resetType="Group" resetGroup="groupRuta" calculation="Sum">
<variableExpression><![CDATA[$F{valorTotal}]]></variableExpression>
</variable>
@ -36,50 +43,44 @@
<variableExpression><![CDATA[$F{valor}]]></variableExpression>
</variable>
<group name="groupRuta">
<groupExpression><![CDATA[$F{descPagamento}]]></groupExpression>
<groupExpression><![CDATA[$F{nomePuntoVenta}]]></groupExpression>
<groupHeader>
<band height="19">
<band height="16">
<textField isBlankWhenNull="true">
<reportElement x="0" y="0" width="179" height="16" uuid="f1171f5c-2175-4176-82b0-c1a31f78f1d3"/>
<reportElement uuid="f1171f5c-2175-4176-82b0-c1a31f78f1d3" x="0" y="0" width="137" height="16"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{descPagamento}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{nomePuntoVenta}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="89a68b6e-ab9f-46d4-8460-8ec8f4988dbe" x="137" y="0" width="103" height="16"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{numeroPuntoVenta}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="0" width="803" height="1" uuid="b6bdef50-f793-4c23-b188-505c0fb7bf18"/>
</line>
<line>
<reportElement x="0" y="15" width="802" height="1" uuid="6e1204b5-dc16-40df-b592-9046e0b31a14"/>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="25">
<line>
<reportElement positionType="Float" x="0" y="0" width="803" height="1" uuid="8dd18564-6d32-4232-a0fd-f39054849109"/>
<reportElement uuid="8dd18564-6d32-4232-a0fd-f39054849109" positionType="Float" x="0" y="0" width="802" height="1"/>
</line>
<textField>
<reportElement x="0" y="1" width="218" height="23" uuid="a7c33cf2-944b-4bd1-bb55-72ab698cc599"/>
<textElement>
<font size="12" isBold="true" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{descPagamento}.equals("CRÉDITO") ? $R{total.credito} : $R{total.debito}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement x="349" y="1" width="38" height="10" uuid="27802809-5617-44e5-a89b-cc64e8bde961"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$V{total_group}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="648" y="1" width="132" height="23" uuid="b3279060-d361-41c6-bc5c-a02d9d08774c"/>
<textElement textAlignment="Right">
<font size="10"/>
<reportElement uuid="b3279060-d361-41c6-bc5c-a02d9d08774c" x="189" y="1" width="51" height="23"/>
<textElement>
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{TOTAL_TIPO_CARTAO}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="f9529467-a4f4-4539-a9e6-f00832931070" x="0" y="1" width="189" height="23"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Total Agência]]></text>
</staticText>
</band>
</groupFooter>
</group>
@ -92,97 +93,141 @@
<pageHeader>
<band height="110" splitType="Stretch">
<textField>
<reportElement x="0" y="20" width="349" height="20" uuid="2523431f-2c2c-4a2b-a34f-785b8ea8f9dd"/>
<reportElement uuid="2523431f-2c2c-4a2b-a34f-785b8ea8f9dd" x="0" y="20" width="481" height="20"/>
<textElement textAlignment="Center">
<font size="15"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.titulo.relatorio}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="40" width="112" height="20" uuid="9bb1d24c-1a5c-4281-b900-d35779e00807"/>
<reportElement uuid="9bb1d24c-1a5c-4281-b900-d35779e00807" x="0" y="40" width="137" height="20"/>
<textElement>
<font size="12"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.periodo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="648" y="0" width="56" height="20" uuid="77235663-6b8a-411f-89be-24b315b65adb"/>
<reportElement uuid="77235663-6b8a-411f-89be-24b315b65adb" x="601" y="0" width="79" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="704" y="20" width="52" height="20" uuid="cf1bcbcf-84b8-4d90-bbc7-22d9c7186952"/>
<reportElement uuid="cf1bcbcf-84b8-4d90-bbc7-22d9c7186952" x="601" y="20" width="79" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement x="704" y="0" width="98" height="20" uuid="efdae9bf-3550-4620-acd0-20c9c7b0e3b1"/>
<reportElement uuid="efdae9bf-3550-4620-acd0-20c9c7b0e3b1" x="680" y="0" width="122" height="20"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="756" y="20" width="24" height="20" uuid="4070d457-cdcc-434e-8e50-5494a05815f9"/>
<reportElement uuid="4070d457-cdcc-434e-8e50-5494a05815f9" x="680" y="20" width="63" height="20"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="780" y="20" width="22" height="20" uuid="26156964-8733-4ad1-96fd-2ae8414636b7"/>
<reportElement uuid="26156964-8733-4ad1-96fd-2ae8414636b7" x="743" y="20" width="59" height="20"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="60" width="802" height="1" uuid="27a77abc-db13-4836-9261-8208f3825802"/>
<reportElement uuid="27a77abc-db13-4836-9261-8208f3825802" x="0" y="60" width="802" height="1"/>
</line>
<textField>
<reportElement x="0" y="61" width="780" height="20" uuid="06a43567-1fd2-4c86-a0cc-443618ddf965"/>
<reportElement uuid="06a43567-1fd2-4c86-a0cc-443618ddf965" x="0" y="61" width="802" height="24"/>
<textElement>
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.filtro} + $R{header.filtro.empresa} + " ( " + $P{NOME_EMPRESA} + " ) " + $R{header.filtro.agencia} + " ( " + $P{NOME_AGENCIA} + " ) " + $R{header.filtro.estacao} + " ( " + $P{ESTACAO} + " ) "+ $R{header.filtro.bilheteiro} + " ( " + $P{NOME_USUARIO} + " ) "]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="85" width="803" height="1" uuid="48a39edc-ed2a-40cb-8bfb-6e97bcb9088a"/>
<reportElement uuid="48a39edc-ed2a-40cb-8bfb-6e97bcb9088a" x="0" y="85" width="802" height="1"/>
</line>
<textField>
<reportElement x="0" y="86" width="179" height="23" uuid="c0f124b2-3691-4f49-9b86-69d76f249584"/>
<textElement textAlignment="Right" markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.dataOperacao}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="179" y="86" width="170" height="23" uuid="5faeb20b-f423-4bfa-bb2e-1f4f4aed6627"/>
<textElement textAlignment="Center" markup="none">
<reportElement uuid="5faeb20b-f423-4bfa-bb2e-1f4f4aed6627" x="601" y="86" width="79" height="24"/>
<textElement markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.autorizacao}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="349" y="86" width="131" height="23" uuid="824877eb-7028-4256-9503-7045d7eaee3c"/>
<textElement textAlignment="Right" markup="none">
<reportElement uuid="824877eb-7028-4256-9503-7045d7eaee3c" x="240" y="86" width="70" height="24"/>
<textElement textAlignment="Center" markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.qtdParcelas}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="480" y="86" width="168" height="23" uuid="b9d303b2-5ea9-4cf0-845b-142089ac8f4d"/>
<textElement textAlignment="Right" markup="none">
<reportElement uuid="b9d303b2-5ea9-4cf0-845b-142089ac8f4d" x="54" y="86" width="83" height="24"/>
<textElement markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.dataVenda}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="480" y="86" width="300" height="23" uuid="c5d483c4-89a2-4724-ad57-731676551f0f"/>
<textElement textAlignment="Right" markup="none">
<reportElement uuid="c5d483c4-89a2-4724-ad57-731676551f0f" x="189" y="86" width="51" height="24"/>
<textElement markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.valor}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="112" y="40" width="237" height="20" uuid="cb391edc-e0b3-4fbb-a58f-f26191bc1c16"/>
<reportElement uuid="cb391edc-e0b3-4fbb-a58f-f26191bc1c16" x="137" y="40" width="344" height="20"/>
<textElement>
<font size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL} + " a " + $P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="90bba5fa-4d47-4bc6-94c0-3e3a5fd4cbd4" x="137" y="86" width="52" height="24"/>
<textElement markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.horaVenda}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="31c52994-7a05-4904-8b79-0a3cf93a7603" x="481" y="86" width="64" height="24"/>
<textElement textAlignment="Center" markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.bandeira}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="4d645ff9-8f04-4ef9-86a2-0a03d5adcaca" x="545" y="86" width="56" height="24"/>
<textElement textAlignment="Center" markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nsu}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="401eb0b2-2b49-4f5a-892c-1be3de0b2f48" x="680" y="86" width="63" height="24"/>
<textElement markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.numeroCartao}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="ff1634d4-16c5-4f86-a875-de685af28c61" x="393" y="86" width="88" height="24"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.estabelecimento}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8ebd2e08-5804-45f0-a890-da20efeb2eb3" x="310" y="86" width="83" height="24"/>
<textElement markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.descFormaPagamento}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="49855fbf-76fd-4692-8c18-1559c8a5a8f9" x="743" y="86" width="59" height="24"/>
<textElement markup="none">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.terminal}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
@ -190,40 +235,82 @@
</columnHeader>
<detail>
<band height="15" splitType="Stretch">
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="648" y="0" width="132" height="15" uuid="80a57c70-9f34-49b9-86f9-14bb27c462ca"/>
<textElement textAlignment="Right">
<textField pattern="###0" isBlankWhenNull="true">
<reportElement uuid="e2737ee4-a6ee-4f1f-9a57-974c926a5d0d" x="240" y="0" width="70" height="15"/>
<textElement textAlignment="Center">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement x="480" y="0" width="168" height="15" uuid="70f7c504-926b-4c12-ae8a-5c7fe4a9e45f"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement x="0" y="0" width="179" height="15" uuid="ec2db54b-37be-4aba-95a3-d2e3067ee3e5"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataOperacao}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{qtdParcelas}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement x="179" y="1" width="170" height="14" uuid="9e67df94-d0f8-4a04-86c0-4862a331d448"/>
<textElement textAlignment="Center">
<reportElement uuid="ed87de37-aef0-40d9-b0ca-770b02d0de39" x="601" y="0" width="79" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{autorizacao}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement x="349" y="1" width="131" height="14" uuid="e2737ee4-a6ee-4f1f-9a57-974c926a5d0d"/>
<reportElement uuid="2553142c-df95-4e56-aa6d-752c0a33e651" x="545" y="0" width="56" height="15"/>
<textElement textAlignment="Center">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdParcelas}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{NSU}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="9808b2bd-a234-4cf4-bfa9-89a81fd743dd" x="680" y="0" width="63" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{numeroCartao}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="74696f67-59a4-4346-bb82-4f63847ef2b0" x="481" y="0" width="64" height="15"/>
<textElement textAlignment="Center">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{bandeira}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="e4d1e873-8b07-4286-8af7-5440c1f1ba0a" x="393" y="0" width="88" height="15"/>
<textElement textAlignment="Center">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{estabelecimento}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="0a679bc3-90d8-47d4-afff-206f562ec6a5" x="54" y="0" width="83" height="15"/>
<textElement textAlignment="Center">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
</textField>
<textField pattern="HH.mm" isBlankWhenNull="true">
<reportElement uuid="7308b189-5995-42c0-b243-dabf9782c352" x="137" y="0" width="52" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="c1faedca-dc75-4fd7-9120-73cd81253ed9" x="189" y="0" width="51" height="15"/>
<textElement>
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="017735ec-285c-4afe-a27e-dfc5d73f64eb" x="310" y="0" width="83" height="15"/>
<textElement textAlignment="Center">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{descPagamento}.equals("CRÉDITO") ? "C" : "D"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="15a4bd94-f42b-429e-95e0-73257c9697d4" x="743" y="0" width="59" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{terminal}]]></textFieldExpression>
</textField>
</band>
</detail>
@ -239,19 +326,19 @@
<summary>
<band height="22" splitType="Stretch">
<textField>
<reportElement x="0" y="1" width="112" height="21" uuid="6813f5a3-1810-4b53-82ea-3df08df9548f"/>
<reportElement uuid="6813f5a3-1810-4b53-82ea-3df08df9548f" x="0" y="1" width="189" height="21"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{group.total}]]></textFieldExpression>
</textField>
<line>
<reportElement positionType="Float" x="0" y="0" width="803" height="1" uuid="d9792af6-b583-4b6e-bb69-7edd7f78fdfa"/>
<reportElement uuid="d9792af6-b583-4b6e-bb69-7edd7f78fdfa" positionType="Float" x="0" y="0" width="802" height="1"/>
</line>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="648" y="1" width="132" height="21" uuid="7ef31b82-e8a2-4baa-821a-174d5ca113fe"/>
<textElement textAlignment="Right">
<font size="10"/>
<reportElement uuid="7ef31b82-e8a2-4baa-821a-174d5ca113fe" x="189" y="1" width="51" height="21"/>
<textElement>
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{TOTAL}]]></textFieldExpression>
</textField>
@ -260,7 +347,8 @@
<noData>
<band height="20">
<textField>
<reportElement x="0" y="0" width="780" height="20" uuid="3429e199-e682-4e28-b2ce-1bc9f2d031b2"/>
<reportElement uuid="3429e199-e682-4e28-b2ce-1bc9f2d031b2" x="0" y="0" width="802" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>

View File

@ -12,7 +12,15 @@ public class RelatorioVendasCartoesBean {
private Integer qtdParcelas;
private BigDecimal valor;
private BigDecimal valorTotal;
private Integer numeroPuntoVenta;
private String nomePuntoVenta;
private String descOperadoraCartao;
private String NSU;
private String numeroCartao;
private String bandeira;
private String estabelecimento;
private String terminal;
public Date getDataVenda() {
return dataVenda;
}
@ -69,4 +77,68 @@ public class RelatorioVendasCartoesBean {
this.dataOperacao = dataOperacao;
}
public Integer getNumeroPuntoVenta() {
return numeroPuntoVenta;
}
public void setNumeroPuntoVenta(Integer numeroPuntoVenta) {
this.numeroPuntoVenta = numeroPuntoVenta;
}
public String getNomePuntoVenta() {
return nomePuntoVenta;
}
public void setNomePuntoVenta(String nomePuntoVenta) {
this.nomePuntoVenta = nomePuntoVenta;
}
public String getDescOperadoraCartao() {
return descOperadoraCartao;
}
public void setDescOperadoraCartao(String descOperadoraCartao) {
this.descOperadoraCartao = descOperadoraCartao;
}
public String getNSU() {
return NSU;
}
public void setNSU(String nSU) {
NSU = nSU;
}
public String getNumeroCartao() {
return numeroCartao;
}
public void setNumeroCartao(String numeroCartao) {
this.numeroCartao = numeroCartao;
}
public String getBandeira() {
return bandeira;
}
public void setBandeira(String bandeira) {
this.bandeira = bandeira;
}
public String getEstabelecimento() {
return estabelecimento;
}
public void setEstabelecimento(String estabelecimento) {
this.estabelecimento = estabelecimento;
}
public String getTerminal() {
return terminal;
}
public void setTerminal(String terminal) {
this.terminal = terminal;
}
}

View File

@ -31,7 +31,7 @@
<label
value="${c:l('relatorioVendasCartoesController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa" buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandarEmpresaUsuario"
model="@{winFiltroRelatorioVendasCartoes$composer.lsEmpresa}"
constraint="no empty" width="100%" />
</row>