<?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="RelatorioPosicaoCaixaAnalitico" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioPosicaoCaixaAnalitico" uuid="b911a1ae-6fda-4c13-9428-5b873b39e8bc">
	<property name="ireport.zoom" value="2.3579476910000023"/>
	<property name="ireport.x" value="658"/>
	<property name="ireport.y" value="338"/>
	<parameter name="fecInicio" class="java.lang.String"/>
	<parameter name="empresa" class="java.lang.String"/>
	<parameter name="puntoVenta" class="java.lang.String"/>
	<parameter name="fecFinal" class="java.lang.String"/>
	<field name="numFolioPreImpreso" class="java.lang.String"/>
	<field name="numFolioSistema" class="java.lang.String"/>
	<field name="sentido" class="java.lang.String"/>
	<field name="tipoVenta" class="java.lang.String"/>
	<field name="fecHorVenta" class="java.util.Date"/>
	<field name="precioPagado" class="java.math.BigDecimal"/>
	<field name="importePedagio" class="java.math.BigDecimal"/>
	<field name="importeTaxaEmbarque" class="java.math.BigDecimal"/>
	<field name="importeSeguro" class="java.math.BigDecimal"/>
	<field name="importeOutros" class="java.math.BigDecimal"/>
	<field name="numSerie" class="java.lang.String"/>
	<variable name="total" class="java.math.BigDecimal">
		<variableExpression><![CDATA[$F{precioPagado}.add($F{importePedagio}).add($F{importeTaxaEmbarque}).add($F{importeSeguro})]]></variableExpression>
	</variable>
	<variable name="totalGeral" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$V{total}]]></variableExpression>
	</variable>
	<variable name="totalIntermediario" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[!$F{numSerie}.contains("UNIC") ? $V{total} : new BigDecimal(0)]]></variableExpression>
	</variable>
	<variable name="totalAgencia" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{numSerie} == null || $F{numSerie}.contains("UNIC") ? $V{total} : new BigDecimal(0)]]></variableExpression>
	</variable>
	<group name="Serie">
		<groupExpression><![CDATA[$F{numSerie}]]></groupExpression>
		<groupHeader>
			<band height="20">
				<textField isBlankWhenNull="true">
					<reportElement uuid="44ff2674-8b2e-48a7-ab14-a2a8417e9eac" positionType="Float" x="0" y="0" width="100" height="20"/>
					<textElement>
						<font size="7" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{serie.label}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement uuid="d4f59572-ecd5-4116-8bdb-c0292a8d4c12" positionType="Float" x="100" y="0" width="100" height="20"/>
					<textElement>
						<font size="7"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{numSerie}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="103" splitType="Stretch">
			<textField>
				<reportElement uuid="0fbfd2e2-c536-40d4-9991-7c220a916a94" x="0" y="41" width="316" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicio} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinal}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="bea0c3f3-035e-4be8-9983-8920c73a1947" x="53" y="62" width="263" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="8a035cb9-84a7-43ea-85b9-963d50bf2b77" x="0" y="21" width="316" height="20"/>
				<textElement markup="none">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="54cfabe9-f8d6-4a9e-beef-46d91d4adf1a" x="0" y="62" width="53" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{empresa.label}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="bbc260a6-ce45-4ced-8b20-2b6a9f2990c9" x="0" y="82" width="53" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{puntoVenta.label}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="42686c90-bfc5-469a-b81c-4e67d4bbb65f" x="53" y="82" width="263" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$P{puntoVenta}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" isBlankWhenNull="true">
				<reportElement uuid="5c46feb2-d147-4c48-9102-233323a255af" x="515" y="0" width="40" height="20">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER}.intValue() > 1 ? Boolean.FALSE: Boolean.TRUE]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="43151e61-6111-4384-9495-4d2065cbbe33" x="450" y="0" width="65" height="20">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER}.intValue() > 1 ? Boolean.FALSE: Boolean.TRUE]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina} +" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement uuid="9486c809-433a-43a9-8181-68e49e0fafbd" x="271" y="0" width="164" height="20">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER}.intValue() > 1 ? Boolean.FALSE: Boolean.TRUE]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right">
					<font size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="40d18495-6c4b-402f-8252-32cf40350d93" x="0" y="21" width="555" height="1"/>
			</line>
		</band>
	</title>
	<pageHeader>
		<band height="20" splitType="Stretch">
			<textField evaluationTime="Report" isBlankWhenNull="true">
				<reportElement uuid="483a8b5a-d8c2-4033-b4f2-cd71e4f46a87" x="515" y="0" width="40" height="20">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER}.intValue() > 1 ? Boolean.TRUE: Boolean.FALSE]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="be61ddbb-5963-41c6-b244-10e697f48261" x="450" y="0" width="65" height="20">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER}.intValue() > 1 ? Boolean.TRUE: Boolean.FALSE]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina} +" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement uuid="79d73318-de72-4ced-af48-ca1ae82c7b37" x="271" y="0" width="164" height="20">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER}.intValue() > 1 ? Boolean.TRUE: Boolean.FALSE]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right">
					<font size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="c77f86f5-82c1-4cdc-9e3e-5668be8b7cf9" x="0" y="19" width="555" height="1">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER}.intValue() > 1 ? Boolean.TRUE: Boolean.FALSE]]></printWhenExpression>
				</reportElement>
			</line>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="20" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement uuid="acb6f26a-054a-484d-bb1d-049fe9d66007" positionType="Float" x="0" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{fisico.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="a27f05b8-93b5-4d88-9219-a69297d3a6c4" positionType="Float" x="50" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{logico.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="3358e9d6-1ac2-479e-aac0-d47f2249f74d" positionType="Float" x="100" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sentido.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="763a9433-ae37-4314-955c-da2f6b942073" positionType="Float" x="150" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{tipoVenta.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="6e920193-c007-4a76-b3e3-4ae7dcd4c158" positionType="Float" x="200" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{fecVenta.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="b0b79a5e-9645-4f1e-88a1-a44ea114d5d8" positionType="Float" x="250" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{fecLanzamiento.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="39503240-5301-4d37-a82b-6b514b4bc995" positionType="Float" x="300" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{tarifa.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="f0dafe4c-0c84-4315-8172-6ebeb6b47d8c" positionType="Float" x="350" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{taxaEmbarque.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="2bcf74f7-1a20-4ee8-b62d-e2adebeab8ba" positionType="Float" x="400" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{pedagio.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="c516cc3a-5e96-4367-bcad-ed39e4522f0e" positionType="Float" x="450" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{seguro.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="e9afb308-8946-49a4-97ae-883072d5adba" positionType="Float" x="500" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{total.label}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement uuid="96fe8f66-d025-4575-82f4-fe4bd28d7e43" positionType="Float" x="0" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numFolioPreImpreso}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="dcd67949-911f-43c4-b382-895c68ff8761" positionType="Float" x="50" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="5d54b38a-d3f6-487b-8f9e-45a614c7c360" positionType="Float" x="100" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{sentido}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="9cabff3d-f0c3-485c-a328-4d02080b6962" positionType="Float" x="150" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{tipoVenta}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="e08bcbc5-d31f-432b-b415-44953d19aa50" positionType="Float" x="200" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{fecHorVenta}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="54938a3d-a159-47c0-bd90-8458a3e073ad" positionType="Float" x="250" y="0" width="50" height="20"/>
				<textElement>
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{fecHorVenta}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00" isBlankWhenNull="true">
				<reportElement uuid="7556807f-a0be-4d07-b8bf-c058c63ee309" positionType="Float" x="300" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00" isBlankWhenNull="true">
				<reportElement uuid="2d0685ef-9384-4d4f-9bc5-780d17758e73" positionType="Float" x="350" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{importeTaxaEmbarque}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00" isBlankWhenNull="true">
				<reportElement uuid="931051ee-8a01-4889-b3f5-46c0761ba3a5" positionType="Float" x="400" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{importePedagio}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00" isBlankWhenNull="true">
				<reportElement uuid="df755858-5320-4559-aaea-19e33ea65e14" positionType="Float" x="450" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{importeSeguro}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00" isBlankWhenNull="true">
				<reportElement uuid="955fd0d9-5f35-46e4-be15-b036364a336f" positionType="Float" x="500" y="0" width="50" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="60" splitType="Stretch">
			<textField pattern="###0.00">
				<reportElement uuid="4519c2ac-c38a-42d2-ac77-3a65a0af4d77" positionType="Float" x="455" y="40" width="95" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{totalGeral}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="78e5c1d5-2431-40f0-9b31-0d4cff5b24f0" positionType="Float" x="316" y="40" width="139" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{totalGeral.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="a6acf959-107c-4d1d-9e55-0364269caf90" positionType="Float" x="316" y="0" width="139" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{totalIntermediaria.label}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="a2b21d19-fff9-4db1-9bb4-6516a494cc5f" positionType="Float" x="316" y="20" width="139" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{totalAgencia.label}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00">
				<reportElement uuid="9da42156-8edb-4574-b8ee-c6868c8296ee" x="455" y="0" width="95" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{totalIntermediario}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00">
				<reportElement uuid="fc8f6aa6-c44a-4696-9fc0-95dc0ae27d38" x="455" y="20" width="95" height="20"/>
				<textElement textAlignment="Right">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{totalAgencia}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="20">
			<textField>
				<reportElement uuid="1f1f7201-b3cc-4ff4-8db1-fd9b547ecf21" x="0" y="0" width="100" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
