<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioDevolucaoBilhetesFinanceiro" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
	<property name="ireport.zoom" value="4.2871776200000244"/>
	<property name="ireport.x" value="1860"/>
	<property name="ireport.y" value="0"/>
	<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
	<style name="table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<parameter name="DATA_INICIAL" 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"/>
	<parameter name="dataDevolucaoInicial" class="java.util.Date"/>
	<parameter name="dataDevolucaoFinal" class="java.util.Date"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="agencia" class="java.lang.String"/>
	<field name="ANTT" class="java.math.BigDecimal"/>
	<field name="AGERBA" class="java.math.BigDecimal"/>
	<field name="cartao" class="java.math.BigDecimal"/>
	<field name="valorBaseCalculo" class="java.math.BigDecimal"/>
	<field name="nomeEstado" class="java.lang.String"/>
	<field name="isento" class="java.math.BigDecimal"/>
	<field name="AVista" class="java.math.BigDecimal"/>
	<field name="nomeClasse" class="java.lang.String"/>
	<variable name="subTotalANTT" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{ANTT}]]></variableExpression>
	</variable>
	<variable name="subTotalAGERBA" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{AGERBA}]]></variableExpression>
	</variable>
	<variable name="subTotalCARTAO" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{cartao}]]></variableExpression>
	</variable>
	<variable name="subTotalValorBaseCalculo" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valorBaseCalculo}]]></variableExpression>
	</variable>
	<variable name="subTotalAVista" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{AVista}]]></variableExpression>
	</variable>
	<variable name="sutTotalIsento" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{isento}]]></variableExpression>
	</variable>
	<variable name="TOTAL_GERAL" class="java.math.BigDecimal">
		<variableExpression><![CDATA[$V{subTotalANTT}.add( $V{subTotalAVista} ).add($V{subTotalAGERBA}).add($V{subTotalCARTAO}).add($V{subTotalValorBaseCalculo})]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="82" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Transparent" x="0" y="0" width="533" height="23" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9" x="0" y="63" width="802" height="1"/>
			</line>
			<textField>
				<reportElement uuid="11b7c338-166a-4149-b45c-b47698bd88ea" stretchType="RelativeToTallestObject" mode="Transparent" x="0" y="64" width="117" height="18" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f" stretchType="RelativeToTallestObject" x="117" y="64" width="685" height="18"/>
				<textElement verticalAlignment="Top">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a" mode="Transparent" x="0" y="23" width="117" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="99f1035a-c3a6-42f8-beac-8a0bfe8aff08" mode="Transparent" x="117" y="38" width="87" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="e13f41e4-5a62-4bf8-81cf-7a64e2cd8a5e" mode="Transparent" x="283" y="38" width="59" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="37103df3-02a9-4e82-aa2f-92fb1b7fcdd8" mode="Transparent" x="0" y="38" width="117" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.periodoVenda}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="96e671b8-e26f-4603-b629-456db24a1203" mode="Transparent" x="204" y="38" width="79" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.periodoA}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement uuid="b8a3345b-03b7-4bfd-8cab-31c07f3e0efa" mode="Transparent" x="644" y="0" width="158" height="23" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="4b6e9016-c490-4abc-a659-fc73eb24a93a" mode="Transparent" x="533" y="23" width="111" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{label.de}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="12e51d0a-4fd5-4dff-95f5-762d8e3bf1f0" mode="Transparent" x="644" y="39" width="158" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="4ac1cdfd-5dfa-4ce7-b9dd-2f193149c8c2" x="533" y="0" width="111" height="23"/>
				<textElement textAlignment="Right">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.dataHora}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement uuid="eed23f0c-3b83-4d3b-80b1-d188ccb7501b" x="644" y="23" width="158" height="16"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="18">
			<line>
				<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" positionType="Float" x="0" y="0" width="802" height="1"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</line>
			<line>
				<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" positionType="Float" x="0" y="17" width="802" height="1"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</line>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270" stretchType="RelativeToTallestObject" x="283" y="1" width="59" height="16" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.cartao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb" stretchType="RelativeToTallestObject" x="417" y="1" width="116" height="16" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.valorBaseCalculo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b" stretchType="RelativeToTallestObject" x="342" y="1" width="75" height="16" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.avista}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf" stretchType="RelativeToTallestObject" x="0" y="1" width="117" height="16" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.agencia}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="2b0943fd-f6c2-414b-b6d1-cb8ad1734e06" stretchType="RelativeToTallestObject" x="204" y="1" width="79" height="16" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.AGERBA}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="f8fe80df-0d02-4f10-b11e-970245f8fb54" stretchType="RelativeToTallestObject" x="117" y="1" width="87" height="16" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.ANTT}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="c20cbb60-0bc7-46a7-a539-fd1f97d5630c" stretchType="RelativeToTallestObject" x="533" y="1" width="111" height="16" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.nomeEstado}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="15">
			<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="b54f0d65-32a3-4b2d-af6f-9722bad4d290" stretchType="RelativeToTallestObject" x="417" y="0" width="116" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Top" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorBaseCalculo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="13452460-af86-49c4-a121-9f723ee74bb3" stretchType="RelativeToTallestObject" x="204" y="0" width="79" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Top" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{AGERBA}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="41269147-5dc4-4e23-8668-f9b550bf238b" stretchType="RelativeToTallestObject" x="117" y="0" width="87" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Top" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ANTT}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="d898f319-976b-4ffa-8dc1-0aa359f2fc5f" stretchType="RelativeToTallestObject" x="283" y="0" width="59" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Top" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{cartao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="1b2738e1-26b5-4782-a511-477ceb95bfff" stretchType="RelativeToTallestObject" x="0" y="0" width="117" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Top" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="45168356-277d-4305-9b60-33c2cedc0f88" stretchType="RelativeToTallestObject" x="342" y="0" width="75" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Top" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{AVista}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="7b958b83-17b4-4f93-aa23-30bca836f969" stretchType="RelativeToTallestObject" x="533" y="0" width="111" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Top" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nomeEstado}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<lastPageFooter>
		<band/>
	</lastPageFooter>
	<summary>
		<band height="16">
			<textField>
				<reportElement uuid="c57012f1-edf2-4505-86c8-693c38a8a0cf" stretchType="RelativeToTallestObject" x="0" y="1" width="117" height="14"/>
				<textElement verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="c2a4d216-ecbf-4690-876b-3263188595ad" x="0" y="0" width="802" height="1"/>
			</line>
			<line>
				<reportElement uuid="ff50b0f9-831b-428e-9177-b264920c542b" positionType="Float" x="0" y="15" width="802" height="1"/>
			</line>
			<textField pattern="#,##0.00;-#,##0.00">
				<reportElement uuid="86dc4366-a058-41a5-aeaf-d2651f74147b" x="117" y="1" width="87" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{subTotalANTT}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;-#,##0.00">
				<reportElement uuid="ed2413f4-b68c-4caa-8dd5-7cab62103509" x="283" y="1" width="59" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{subTotalCARTAO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;-#,##0.00">
				<reportElement uuid="6c1d24e7-9ad1-490a-a2ad-2d96533e4a05" x="204" y="1" width="79" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{subTotalAGERBA}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;-#,##0.00">
				<reportElement uuid="bb86029f-a561-4a5e-8279-d14c5dbf5cbe" x="417" y="1" width="116" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{subTotalValorBaseCalculo}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;-#,##0.00">
				<reportElement uuid="9d6e8ef2-c004-467a-af51-88aaad9b2294" x="342" y="1" width="75" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{subTotalAVista}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="22">
			<textField>
				<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="0" y="0" width="802" height="22"/>
				<textElement markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
