<?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="RelatorioFinanceiroReceitasDespesas" pageWidth="1136" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1096" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
	<property name="ireport.zoom" value="1.3636363636363638"/>
	<property name="ireport.x" value="347"/>
	<property name="ireport.y" value="0"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
	<style name="zebrado">
		<conditionalStyle>
			<conditionExpression><![CDATA[$V{REPORT_COUNT}%2==1]]></conditionExpression>
			<style backcolor="#CCCCCC"/>
		</conditionalStyle>
	</style>
	<parameter name="fecInicioFiltro" class="java.lang.String"/>
	<parameter name="fecFinalFiltro" class="java.lang.String"/>
	<parameter name="noDataRelatorio" class="java.lang.String"/>
	<parameter name="nombEmpresa" class="java.lang.String"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="dataVenda" class="java.util.Date"/>
	<field name="nombPuntoVenta" class="java.lang.String"/>
	<field name="tipoEventoExtraId" class="java.lang.String"/>
	<field name="descTipoEvento" class="java.lang.String"/>
	<field name="valor" class="java.math.BigDecimal"/>
	<field name="status" class="java.lang.String"/>
	<field name="ddd" class="java.lang.String"/>
	<field name="telefone" class="java.lang.String"/>
	<field name="usuario" class="java.lang.String"/>
	<field name="rvhubId" class="java.lang.String"/>
	<variable name="vTotalConfirmado" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{status}.equals( "CONFIRMADA" )?$F{valor}:BigDecimal.ZERO]]></variableExpression>
	</variable>
	<variable name="vTotalCancelado" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{status}.equals( "CANCELADA" )?$F{valor}:BigDecimal.ZERO]]></variableExpression>
	</variable>
	<variable name="vTotalAutorizado" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{status}.equals( "AUTORIZADA" )?$F{valor}:BigDecimal.ZERO]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="78" splitType="Stretch">
			<textField>
				<reportElement uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec" x="934" y="20" width="139" height="20"/>
				<textElement textAlignment="Right">
					<font isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="43b2c28d-4760-4890-b00d-25e931e79c74" x="0" y="0" width="934" height="20"/>
				<textElement markup="none">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5" x="934" y="0" width="161" height="20"/>
				<textElement textAlignment="Right">
					<font isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement uuid="b3192d34-b55c-4a4e-9d38-227fbcd2f2bb" x="1073" y="20" width="22" height="20"/>
				<textElement>
					<font size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="b1cf4373-eaf7-44ea-a501-f860094844df" x="102" y="20" width="832" height="40"/>
				<textElement/>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="2112e0ea-6df2-448f-8761-5c211d3012d3" mode="Transparent" x="934" y="40" width="161" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="718f0c7e-92f9-4204-8405-4b65faf995c6" x="0" y="20" width="102" height="40"/>
				<textElement markup="none"/>
				<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="ddc1f7ca-fd85-4698-824f-eba0fbb9e81a" x="0" y="59" width="1096" height="1"/>
			</line>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="21" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e" stretchType="RelativeToTallestObject" x="0" y="0" width="102" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.data}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="a228f320-6e89-45a4-aef6-d1e8e76fa7a7" stretchType="RelativeToTallestObject" x="102" y="1" width="210" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.agenciaDescricao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="6724b194-ae32-48c6-ac74-578fe785e768" stretchType="RelativeToTallestObject" x="312" y="0" width="141" height="20"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$R{label.tipo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="6d430f80-9725-4277-8eb7-9c36b8d0496c" stretchType="RelativeToTallestObject" x="453" y="1" width="50" height="20"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$R{label.ddd}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="98852ec0-40cc-46f6-8e15-d243abbef01e" x="593" y="0" width="115" height="20"/>
				<textElement textAlignment="Left" markup="none"/>
				<textFieldExpression><![CDATA[$R{label.situacao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="97964207-4388-4f8b-be2b-befe4264210c" stretchType="RelativeToTallestObject" x="798" y="0" width="77" height="20"/>
				<box rightPadding="2"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.valor}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="72be8326-4994-4155-b95a-bd7735d2a3c7" stretchType="RelativeToTallestObject" x="503" y="1" width="90" height="20"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$R{label.telefone}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="30ef0ac9-9128-48bd-aefc-86d8c21d90f1" stretchType="RelativeToTallestObject" x="708" y="0" width="90" height="20"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$R{label.usuario}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="563075ed-e4fc-4364-8217-40acb9920c9b" stretchType="RelativeToTallestObject" x="875" y="0" width="220" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.rvhubId}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="14" splitType="Stretch">
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm:ss" isBlankWhenNull="true">
				<reportElement uuid="c98526c0-c36f-42df-9308-452ac671044c" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="102" height="14" isPrintWhenDetailOverflows="true"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement/>
				<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
				<reportElement uuid="aad51f92-6577-4404-9c57-1d47c0c64c6a" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="102" y="0" width="210" height="14" isPrintWhenDetailOverflows="true"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement/>
				<textFieldExpression><![CDATA[$F{nombPuntoVenta}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
				<reportElement uuid="e2841610-831d-4379-96ff-e5806f4c1ceb" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="312" y="0" width="141" height="14" isPrintWhenDetailOverflows="true"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{descTipoEvento}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="77d7eb39-6b9d-448d-981b-01813e97d038" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="798" y="0" width="77" height="14" isPrintWhenDetailOverflows="true"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="a9a0a244-8f87-4ebf-8557-dfde197b4287" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="453" y="0" width="50" height="14" isPrintWhenDetailOverflows="true"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{ddd}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="be7f0c15-3826-4f96-a4ce-1c869ccfeaae" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="503" y="0" width="90" height="14"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Top" markup="styled">
					<font fontName="SansSerif" size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{telefone}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="f20aaaa9-f7af-4217-9067-3ae137dd742e" style="zebrado" mode="Opaque" x="593" y="0" width="115" height="14"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="d0a920ca-cfca-4885-b85e-5c698a999cb7" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="708" y="0" width="90" height="14"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Top" markup="styled">
					<font fontName="SansSerif" size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{usuario}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="e9a7b2ab-8339-42a1-ab27-a7d52a49a3ba" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="875" y="0" width="219" height="14"/>
				<box>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Top" markup="styled">
					<font fontName="SansSerif" size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{rvhubId}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="63" splitType="Stretch">
			<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement uuid="417ed1de-ce71-42fa-8108-33a37f6a0626" stretchType="RelativeToTallestObject" x="798" y="3" width="77" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalConfirmado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="38a0f957-1b50-46f9-b79f-c631baf8937b" x="708" y="3" width="90" height="20"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.totalConfirmado}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement uuid="98ddf192-0809-4c79-ba56-94461f50b574" stretchType="RelativeToTallestObject" x="798" y="23" width="77" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalCancelado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="2d1639ce-39de-4145-9b37-e05fe2f104a9" x="708" y="23" width="90" height="20"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.totalCancelado}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement uuid="c9779e11-a7cc-4860-b0d2-dbe4af4d8369" stretchType="RelativeToTallestObject" x="798" y="43" width="77" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalAutorizado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="67e54f31-b136-4d9d-9698-1c6357d27282" x="708" y="43" width="90" height="20"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.totalAutorizado}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="7292d068-658e-4a0a-a97c-c856d8700c65" x="1" y="0" width="1096" height="1"/>
			</line>
		</band>
	</summary>
	<noData>
		<band height="24">
			<textField isBlankWhenNull="true">
				<reportElement uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091" positionType="Float" x="0" y="0" width="1202" height="24" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
