<?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="RelatorioFinanceiroReceitasDespesasSintetico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="468"/>
	<property name="ireport.y" value="0"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="Summary"/>
	<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"/>
	<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="filtros" class="java.lang.String"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="nombPuntoVenta" class="java.lang.String"/>
	<field name="numPuntoVenta" class="java.lang.String"/>
	<field name="receita" class="java.math.BigDecimal"/>
	<field name="despesa" class="java.math.BigDecimal"/>
	<field name="saldo" class="java.math.BigDecimal"/>
	<variable name="vReceita" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{receita}]]></variableExpression>
	</variable>
	<variable name="vDespesa" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{despesa}]]></variableExpression>
	</variable>
	<variable name="vSaldo" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{saldo}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="81" splitType="Stretch">
			<textField>
				<reportElement x="638" y="20" width="142" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
				<textElement textAlignment="Right">
					<font isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="0" width="638" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
				<textElement markup="none">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement x="638" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
				<textElement textAlignment="Right">
					<font isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="">
				<reportElement x="0" y="20" width="638" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
				<textElement>
					<font isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicioFiltro} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinalFiltro}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="783" y="20" width="19" height="20" uuid="b0635582-1d50-4d42-a0f4-e0e21412f70b"/>
				<textElement>
					<font size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="53" y="40" width="585" height="20" uuid="7e0c5dcd-1aef-4ea5-9086-58ba403c72cb"/>
				<textFieldExpression><![CDATA[$P{nombEmpresa}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="0" y="60" width="802" height="20" uuid="bf0da4ed-c3e9-4a30-bee4-7fe1e1e36291"/>
				<textFieldExpression><![CDATA[$P{filtros}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="40" width="53" height="20" uuid="66d18dd5-7e25-4ffe-aa86-8106b2d13d41"/>
				<textElement markup="none"/>
				<textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="638" y="40" width="164" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="c27f48c2-ce16-48ba-b704-c3969cbb4356"/>
				<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>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="21" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="143" height="20" uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e"/>
				<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement positionType="Float" x="0" y="20" width="802" height="1" uuid="811af238-a027-48e9-bd6f-eee885474929"/>
			</line>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="153" y="0" width="349" height="20" uuid="a228f320-6e89-45a4-aef6-d1e8e76fa7a7"/>
				<textFieldExpression><![CDATA[$R{label.agenciaDescricao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" uuid="97964207-4388-4f8b-be2b-befe4264210c"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.saldo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="502" y="0" width="100" height="20" uuid="86d783fe-132a-4724-a4cd-16fb16bc0292"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.receita}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="602" y="0" width="100" height="20" uuid="ef72dc85-10bf-4474-b99c-c4d87c13370b"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.despesa}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="143" height="20" isPrintWhenDetailOverflows="true" uuid="c98526c0-c36f-42df-9308-452ac671044c"/>
				<textFieldExpression><![CDATA[$F{numPuntoVenta}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
				<reportElement stretchType="RelativeToTallestObject" x="143" y="0" width="359" height="20" isPrintWhenDetailOverflows="true" uuid="aad51f92-6577-4404-9c57-1d47c0c64c6a"/>
				<textFieldExpression><![CDATA[$F{nombPuntoVenta}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="77d7eb39-6b9d-448d-981b-01813e97d038"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{saldo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="502" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="732434aa-7a10-4c36-997a-8fa7f6d26891"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{receita}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="602" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="4925fe82-df5b-46c2-a176-d78bb20ec93e"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{despesa}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="21" splitType="Stretch">
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="702" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="417ed1de-ce71-42fa-8108-33a37f6a0626"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vSaldo}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="c8dfd524-14cc-454c-afc0-3ce9f8d0ead8"/>
			</line>
			<textField>
				<reportElement x="334" y="1" width="168" height="20" uuid="38a0f957-1b50-46f9-b79f-c631baf8937b"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="502" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="2bdad77e-49ae-4c5a-8af5-e20f4b06854e"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vReceita}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="602" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="051e311d-91a5-4316-bcab-c9b7d35c16c6"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vDespesa}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="20">
			<textField isBlankWhenNull="true">
				<reportElement positionType="Float" x="0" y="0" width="555" height="20" isPrintWhenDetailOverflows="true" uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
