<?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.6500000000000004"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="7"/>
	<style name="bpeStyle" isDefault="true" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false">
		<conditionalStyle>
			<conditionExpression><![CDATA[$F{chbpe} != null ? Boolean.TRUE : Boolean.FALSE]]></conditionExpression>
			<style fontSize="4"/>
		</conditionalStyle>
		<conditionalStyle>
			<conditionExpression><![CDATA[$F{chbpe} != null ? Boolean.FALSE : Boolean.TRUE]]></conditionExpression>
			<style fontSize="6"/>
		</conditionalStyle>
	</style>
	<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
	<style name="table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<parameter name="dataVendaInicial" class="java.util.Date"/>
	<parameter name="dataVendaFinal" class="java.util.Date"/>
	<parameter name="EMPRESA" class="java.lang.String"/>
	<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="TIPO_DATA" class="java.lang.Integer"/>
	<parameter name="dataDevolucaoInicial" class="java.util.Date"/>
	<parameter name="dataDevolucaoFinal" class="java.util.Date"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="aidf" class="java.lang.String"/>
	<field name="numFolioSistema" class="java.lang.String"/>
	<field name="serieSubSerie" class="java.lang.String"/>
	<field name="folio" class="java.lang.String"/>
	<field name="estadoId" class="java.lang.Integer"/>
	<field name="uf" class="java.lang.String"/>
	<field name="fechorVenta" class="java.lang.String"/>
	<field name="valorIcms" class="java.math.BigDecimal"/>
	<field name="empresaId" class="java.lang.Integer"/>
	<field name="empresa" class="java.lang.String"/>
	<field name="estornoMunicipal" class="java.math.BigDecimal"/>
	<field name="estornoEstadual" class="java.math.BigDecimal"/>
	<field name="numpuntoventa" class="java.lang.String"/>
	<field name="numpuntoventaOrigem" class="java.lang.String"/>
	<field name="valorIsenta" class="java.math.BigDecimal"/>
	<field name="valorContabil" class="java.math.BigDecimal"/>
	<field name="valorOutras" class="java.math.BigDecimal"/>
	<field name="fechorDevolucao" class="java.lang.String"/>
	<field name="estado" class="java.lang.String"/>
	<field name="baseCalculoIcms" class="java.math.BigDecimal"/>
	<field name="aliquota" class="java.math.BigDecimal"/>
	<field name="chbpe" class="java.lang.String"/>
	<field name="chbpeSubstituicao" class="java.lang.String"/>
	<variable name="vSubTotalIcms" 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="Count">
		<variableExpression><![CDATA[$F{numFolioSistema}]]></variableExpression>
	</variable>
	<variable name="vTotalIcms" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valorIcms}]]></variableExpression>
	</variable>
	<variable name="vSubTotalIsenta" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
		<variableExpression><![CDATA[$F{valorIsenta}]]></variableExpression>
	</variable>
	<variable name="vTotalIsenta" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valorIsenta}]]></variableExpression>
	</variable>
	<variable name="vSubTotalOutras" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
		<variableExpression><![CDATA[$F{valorOutras}]]></variableExpression>
	</variable>
	<variable name="vTotalOutras" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valorOutras}]]></variableExpression>
	</variable>
	<variable name="vSubTotalContabil" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
		<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
	</variable>
	<variable name="vTotalContabil" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
	</variable>
	<variable name="vTotalEstornoIntermunicipal" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{estornoMunicipal}]]></variableExpression>
	</variable>
	<variable name="vTotalEstornoInterestadual" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{estornoEstadual}]]></variableExpression>
	</variable>
	<variable name="vTotalSomaEstorno" class="java.math.BigDecimal" resetType="Group" resetGroup="estado_empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{estornoEstadual}.add($F{estornoMunicipal})]]></variableExpression>
	</variable>
	<variable name="vSubTotalBaseCalculoIcms" class="java.math.BigDecimal" resetType="Group" resetGroup="data_group" calculation="Sum">
		<variableExpression><![CDATA[$F{baseCalculoIcms}]]></variableExpression>
	</variable>
	<variable name="vTotalBaseCalculoIcms" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{baseCalculoIcms}]]></variableExpression>
	</variable>
	<group name="empresa">
		<groupExpression><![CDATA[$F{empresaId}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<textField>
					<reportElement x="1" y="0" width="270" height="14" uuid="3055dd3d-ea00-4d23-9a0d-7b86d4b4979f"/>
					<textElement>
						<font size="6" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<group name="estado_empresa">
		<groupExpression><![CDATA[$F{estadoId}]]></groupExpression>
		<groupHeader>
			<band height="15" splitType="Stretch">
				<textField>
					<reportElement x="0" y="0" width="271" height="15" uuid="bf4c40a4-42c9-4450-b86b-14d1afc8c7d6"/>
					<textElement>
						<font size="6" isBold="false"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{estado}+" - "+$F{uf}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="47">
				<textField>
					<reportElement x="0" y="1" width="271" height="14" uuid="b8ec678c-6528-4e69-bfed-9ebfde7416ae"/>
					<textElement>
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{label.impEstornarIntermunicipal}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="0" y="0" width="800" height="1" uuid="ddbec772-7ac5-4ca7-8bd9-f4d556cd8015"/>
				</line>
				<textField>
					<reportElement x="0" y="15" width="271" height="14" uuid="2fbc23a4-a87e-4b19-960a-074a9c17231f"/>
					<textElement>
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{label.impEstornarInterestadual}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="271" y="15" width="162" height="14" uuid="ac8a5a5d-6d23-445c-925f-81a506de6e5e"/>
					<textElement textAlignment="Right">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vTotalEstornoInterestadual}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="271" y="1" width="162" height="14" uuid="824c2026-e1ef-459e-88d3-a746acff0dad"/>
					<textElement textAlignment="Right">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vTotalEstornoIntermunicipal}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="271" y="29" width="162" height="14" uuid="10545815-fcf1-40b9-b645-7d1e3097cf0c"/>
					<textElement textAlignment="Right">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vTotalSomaEstorno}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="0" y="29" width="271" height="14" uuid="d4909dc9-7ef7-4fc0-b835-73c30300e693"/>
					<textElement>
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{label.impEstornarTotal}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="0" y="44" width="800" height="1" uuid="46e728c0-ea4e-4eaf-a88a-e44b3d1381f1"/>
				</line>
			</band>
		</groupFooter>
	</group>
	<group name="data_group">
		<groupExpression><![CDATA[$F{fechorDevolucao}]]></groupExpression>
		<groupHeader>
			<band height="17">
				<textField>
					<reportElement x="1" y="0" width="270" height="15" uuid="c92216da-0d77-4711-94a4-b8b2d00465a3"/>
					<textElement>
						<font size="6" isBold="false"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{fechorDevolucao}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="1" y="15" width="800" height="1" uuid="fc2f690d-3659-4d11-a671-9c004341d03d"/>
				</line>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="16">
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="541" y="1" width="74" height="14" uuid="67bdceb4-d6ed-42c5-871f-d809ffec832b"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vSubTotalBaseCalculoIcms}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="527" y="1" width="51" height="14" uuid="943bc881-8248-4da5-999a-62b2f67a573a"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vSubTotalContabil}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="1" y="0" width="800" height="1" uuid="eb29c074-35dc-47d8-855b-78b95676b7ae"/>
				</line>
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="662" y="1" width="46" height="14" uuid="6e65196e-b844-4c3d-9697-44aadad52344"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vSubTotalIcms}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="1" y="1" width="214" height="13" uuid="bbb5fed7-d553-42f3-9d90-4e548e0b7b38"/>
					<textElement verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA["Subtotal - " + $F{fechorDevolucao}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="708" y="1" width="42" height="14" uuid="dd9cdc1b-7478-467b-ab0c-c6b491790a34"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vSubTotalIsenta}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement x="750" y="1" width="52" height="14" uuid="3a9f3181-f27b-4978-9a0b-16ad6c20032a"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="6"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{vSubTotalOutras}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="78" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="2" y="1" width="577" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="1" y="62" width="800" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
			</line>
			<textField>
				<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1" y="63" width="65" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="66" y="63" width="736" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
				<textElement verticalAlignment="Top">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement mode="Transparent" x="2" y="17" width="92" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="94" y="32" width="61" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="99f1035a-c3a6-42f8-beac-8a0bfe8aff08"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{dataVendaInicial}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="215" y="32" width="56" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e13f41e4-5a62-4bf8-81cf-7a64e2cd8a5e"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{dataVendaFinal}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="2" y="47" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="2fd5ba9d-ae93-48cd-ae4e-6c7c3302d4b0">
					<printWhenExpression><![CDATA[$P{dataDevolucaoInicial} != null || $P{dataDevolucaoFinal} != null]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.periodoDevolucao}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="155" y="47" width="60" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="d9fcac2b-0936-47f7-8653-23342d1373a1">
					<printWhenExpression><![CDATA[$P{dataDevolucaoFinal} != null]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="2" y="32" width="92" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="37103df3-02a9-4e82-aa2f-92fb1b7fcdd8"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.periodoVenda}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="94" y="47" width="61" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="9351a4b9-fbc4-4438-bf64-a88c7bb58838"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{dataDevolucaoInicial}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="155" y="32" width="60" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="96e671b8-e26f-4603-b629-456db24a1203">
					<printWhenExpression><![CDATA[$P{dataVendaFinal} != null]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.ate}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="215" y="47" width="56" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="5ae8525f-9db9-4192-b64c-b28c27e72351"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{dataDevolucaoFinal}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="684" y="1" width="117" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="b8a3345b-03b7-4bfd-8cab-31c07f3e0efa"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="578" y="17" width="203" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4b6e9016-c490-4abc-a659-fc73eb24a93a"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{label.de}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="578" y="33" width="223" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="12e51d0a-4fd5-4dff-95f5-762d8e3bf1f0"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="578" y="1" width="106" height="15" uuid="4ac1cdfd-5dfa-4ce7-b9dd-2f193149c8c2"/>
				<textElement textAlignment="Right">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.dataHora}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="782" y="17" width="19" height="15" uuid="0a561700-92b8-4653-9830-3ee2f983cbee"/>
				<textElement>
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="16">
			<line>
				<reportElement positionType="Float" x="0" y="0" width="800" height="1" uuid="04a75f17-3686-484b-be43-7b7e22e9def7"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</line>
			<line>
				<reportElement positionType="Float" x="0" y="15" width="800" height="1" uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</line>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="487" y="1" width="40" height="14" isPrintWhenDetailOverflows="true" uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{chbpe} != null ? "Tipo/Sub." : $R{label.serieSubs}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="578" y="1" width="37" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0b598d85-e93d-4916-b9a1-c80e694aabb6"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.baseCalc}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="615" y="1" width="47" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="e647ff9e-f7e2-4c90-a75f-d831980391b6"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.aliquota}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="662" y="1" width="46" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="a1a4be94-54f7-42f0-bdd3-5b0b2d6a37c4"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.icms}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="527" y="1" width="51" height="14" isPrintWhenDetailOverflows="true" uuid="ed400846-62e0-4199-8c0d-c4b7741d934c"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.vrContabil}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="433" y="1" width="54" height="14" isPrintWhenDetailOverflows="true" uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{chbpe} != null ? "Num Bpe" : $R{label.numeroBilhete}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="50" height="14" isPrintWhenDetailOverflows="true" uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="101" y="1" width="20" height="14" isPrintWhenDetailOverflows="true" uuid="2b0943fd-f6c2-414b-b6d1-cb8ad1734e06"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.uf}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="51" y="1" width="50" height="14" isPrintWhenDetailOverflows="true" uuid="f8fe80df-0d02-4f10-b11e-970245f8fb54"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.numpuntoventaOrigem}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="121" y="1" width="45" height="14" isPrintWhenDetailOverflows="true" uuid="fc142d15-a328-4187-89dc-9d8d4f3dd270"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.fechorDevolucao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="708" y="1" width="42" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="a77ed233-da19-434c-b3d9-e7a418acaf00"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.isenta}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="750" y="1" width="52" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="8dc706f6-dd2d-4b71-acf0-fa8dcd5c4f8d"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.outras}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="322" y="1" width="110" height="14" isPrintWhenDetailOverflows="true" uuid="ba1b92a2-ea24-4e4d-b265-dab785c370b0"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{chbpe} != null ? $R{label.chaveSubstituicaoBpe} : ""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="212" y="0" width="110" height="15" isPrintWhenDetailOverflows="true" uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none"/>
				<textFieldExpression><![CDATA[$F{chbpe} != null ? $R{label.chaveBpe} : $R{label.aidf}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="166" y="1" width="46" height="14" isPrintWhenDetailOverflows="true" uuid="41cac39d-b117-45c5-8958-7bfa83bc79be"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["Data Venda"]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="14">
			<textField isBlankWhenNull="true">
				<reportElement style="bpeStyle" x="212" y="0" width="110" height="14" uuid="a34502fa-62b7-44b6-9218-90034054b7ac"/>
				<textElement textAlignment="Justified" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{chbpe} != null ? $F{chbpe} : $F{aidf}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement style="bpeStyle" x="487" y="0" width="40" height="14" uuid="73fc6712-d370-49e2-ac39-55e2fa5ce9e2"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{serieSubSerie}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="527" y="0" width="51" height="14" uuid="b14dbaab-e9a1-4aae-a12c-6305da9d2f80"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="615" y="0" width="47" height="14" uuid="3285bf53-66f1-4dc2-b3db-d12875efa546"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{aliquota}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="578" y="0" width="37" height="14" uuid="6772d6a9-3611-4cb6-9c3b-f78dc3fb5dc0"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{baseCalculoIcms}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="662" y="0" width="46" height="14" uuid="e948b0e2-03c4-47c9-91f1-90d3a3fc4bf4"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorIcms}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="433" y="0" width="54" height="14" uuid="46bc3410-c01a-4e91-a8e9-17f02536e23d"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="6" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="1" y="0" width="50" height="14" uuid="74a5a183-6fe2-4f22-8b51-b54197aa3582"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numpuntoventa}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="101" y="0" width="20" height="14" uuid="8a750495-30d4-4093-b08e-1d487fe9384b"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{uf}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="51" y="0" width="50" height="14" uuid="ac79d04b-123b-45f4-bdbc-81819b16c668"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numpuntoventaOrigem}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="true">
				<reportElement x="121" y="0" width="45" height="14" uuid="c7b4a542-1cfc-4646-a423-53c5ea12d4f3"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{fechorDevolucao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="708" y="0" width="42" height="14" uuid="cdc6fee6-76ba-4cd9-95ee-0ad7fe34c515"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorIsenta}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="750" y="0" width="52" height="14" uuid="4b5bd414-7154-4d27-9be3-5764b19cd5d9"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorOutras}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="322" y="0" width="110" height="14" uuid="55b3e473-a704-4928-a52a-f71221094b21"/>
				<textElement textAlignment="Justified" verticalAlignment="Middle">
					<font size="4"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{chbpe} != null ? $F{chbpeSubstituicao} : ""]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="true">
				<reportElement x="166" y="0" width="46" height="14" uuid="e7c5acba-3fe6-4b74-83b1-63bed12be0eb"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{fechorVenta}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<lastPageFooter>
		<band/>
	</lastPageFooter>
	<summary>
		<band height="17">
			<textField>
				<reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="67" height="14" uuid="c57012f1-edf2-4505-86c8-693c38a8a0cf"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement stretchType="RelativeToTallestObject" x="271" y="1" width="162" height="14" uuid="0dcac787-43f7-4e9f-84c8-06567671ddb7"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{qtdeBilhetes}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="68" y="1" width="203" height="14" uuid="fba1bd88-a15f-4d9f-93fb-9abbfaa5429e"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.qtdeBilhetes}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement positionType="Float" x="1" y="16" width="800" height="1" uuid="ff50b0f9-831b-428e-9177-b264920c542b"/>
			</line>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="433" y="1" width="108" height="14" uuid="5bb73e4d-a51b-4a04-bed0-8fa3eb7f8553"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalContabil}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="541" y="1" width="74" height="14" uuid="7c3ce565-f549-48d2-815d-9b4d7a39b1ca"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalBaseCalculoIcms}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="662" y="1" width="46" height="14" uuid="7a2dbe9b-868e-46db-b3b3-6e759d4dba98"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalIcms}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="750" y="1" width="52" height="14" uuid="fba9c1d7-5a33-4229-9371-31aacc2a9fbb"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalOutras}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="708" y="1" width="42" height="14" uuid="e6928dff-a4be-42a7-bb7e-281a23110d3a"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalIsenta}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="22">
			<textField>
				<reportElement x="68" y="0" width="602" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/>
				<textElement markup="none">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
