<?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="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>
	</parameter>
	<parameter name="DATA_FINAL" class="java.lang.String"/>
	<parameter name="LINHA_FILTRO" class="java.lang.String"/>
	<parameter name="SERVICO_FILTRO" class="java.lang.String"/>
	<parameter name="TOTAL_PASSAGENS" class="java.math.BigDecimal"/>
	<parameter name="DESCGRUPO" class="java.lang.String"/>
	<parameter name="NOME_EMPRESA" class="java.lang.String"/>
	<parameter name="ESTACAO" class="java.lang.String"/>
	<parameter name="NOME_USUARIO" class="java.lang.String"/>
	<parameter name="NOME_AGENCIA" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="valorTotal" class="java.math.BigDecimal"/>
	<field name="descPagamento" class="java.lang.String"/>
	<field name="dataOperacao" class="java.util.Date"/>
	<field name="autorizacao" class="java.lang.String"/>
	<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.String"/>
	<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>
	<variable name="TOTAL" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valor}]]></variableExpression>
	</variable>
	<variable name="TOTAL_TIPO_CARTAO" class="java.math.BigDecimal" resetType="Group" resetGroup="groupRuta" calculation="Sum">
		<variableExpression><![CDATA[$F{valor}]]></variableExpression>
	</variable>
	<group name="groupRuta">
		<groupExpression><![CDATA[$F{nomePuntoVenta}]]></groupExpression>
		<groupHeader>
			<band height="16">
				<textField isBlankWhenNull="true">
					<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{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>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="25">
				<line>
					<reportElement uuid="8dd18564-6d32-4232-a0fd-f39054849109" positionType="Float" x="0" y="0" width="802" height="1"/>
				</line>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<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>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="110" splitType="Stretch">
			<textField>
				<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 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 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 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 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 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 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 uuid="27a77abc-db13-4836-9261-8208f3825802" x="0" y="60" width="802" height="1"/>
			</line>
			<textField>
				<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 uuid="48a39edc-ed2a-40cb-8bfb-6e97bcb9088a" x="0" y="85" width="802" height="1"/>
			</line>
			<textField>
				<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 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 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 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 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>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="15" splitType="Stretch">
			<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{qtdParcelas}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="true">
				<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 uuid="2553142c-df95-4e56-aa6d-752c0a33e651" x="545" y="0" width="56" height="15"/>
				<textElement textAlignment="Center">
					<font size="10"/>
				</textElement>
				<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>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<lastPageFooter>
		<band/>
	</lastPageFooter>
	<summary>
		<band height="22" splitType="Stretch">
			<textField>
				<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 uuid="d9792af6-b583-4b6e-bb69-7edd7f78fdfa" positionType="Float" x="0" y="0" width="802" height="1"/>
			</line>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<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>
		</band>
	</summary>
	<noData>
		<band height="20">
			<textField>
				<reportElement uuid="3429e199-e682-4e28-b2ce-1bc9f2d031b2" x="0" y="0" width="802" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
