<?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="RelatorioVendasPacotesResumido" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
	<property name="ireport.zoom" value="4.0"/>
	<property name="ireport.x" value="1691"/>
	<property name="ireport.y" value="495"/>
	<parameter name="empresa" class="java.lang.String"/>
	<parameter name="fecInicio" class="java.lang.String"/>
	<parameter name="fecFinal" class="java.lang.String"/>
	<parameter name="noDataRelatorio" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="nompacote" class="java.lang.String"/>
	<field name="qtdePacotes" class="java.lang.Long"/>
	<field name="totalBoletos" class="java.math.BigDecimal"/>
	<field name="totalPacotes" class="java.math.BigDecimal"/>
	<variable name="vTotalQtdePacotes" class="java.lang.Long" calculation="Sum">
		<variableExpression><![CDATA[$F{qtdePacotes}]]></variableExpression>
	</variable>
	<variable name="vTotalBoletos" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{totalBoletos}]]></variableExpression>
	</variable>
	<variable name="vTotalPacotes" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{totalPacotes}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="62" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="0" width="301" height="20" uuid="58b5b133-43e0-42f0-a904-5cc3645d3df3"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[Relatório Vendas de Pacotes - Resumido]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement x="391" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="20" width="301" height="20" uuid="a16eb33b-78ca-4fb4-80c2-f5c85a0d09c3"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.empresa} + " " + $P{empresa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="40" width="301" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicio} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinal}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="21" splitType="Stretch">
			<textField>
				<reportElement x="391" y="0" width="164" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER} + " " + $R{cabecalho.de} + " " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="24" splitType="Stretch">
			<line>
				<reportElement x="0" y="0" width="556" height="1" forecolor="#CCCCCC" uuid="4f39b5b4-849a-4fe2-9365-06930866fbaa"/>
			</line>
			<textField>
				<reportElement x="1" y="2" width="253" height="20" uuid="d1e8ab32-c6d2-4622-82d9-d0681647fa14"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.pacote}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="256" y="2" width="99" height="20" uuid="c98a5bfb-8f19-482f-bc61-50f9f8c2661b"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.quantidade}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="355" y="2" width="99" height="20" uuid="c09202ea-b74e-4355-b068-a9dab46961b7"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.totalBoletos}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="455" y="2" width="99" height="20" uuid="43e703a6-e2a7-4342-ba8e-858d989cd7d3"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.totalPacotes}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="23" width="556" height="1" forecolor="#CCCCCC" uuid="43655f53-cbc3-4ad6-8632-3957abae0bfc"/>
			</line>
			<line>
				<reportElement stretchType="RelativeToTallestObject" x="254" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="f31d9963-51e1-41c7-b894-edc7284e362c"/>
			</line>
			<line>
				<reportElement stretchType="RelativeToTallestObject" x="355" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="88873cf8-9aef-4d0e-8c23-b70fe7e40a85"/>
			</line>
			<line>
				<reportElement stretchType="RelativeToTallestObject" x="455" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="32a7dabe-6fb2-460f-bdc0-6db5602d3234"/>
			</line>
			<line>
				<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="92555ddb-ba51-4887-9e36-1d0ad9564aa7"/>
			</line>
			<line>
				<reportElement stretchType="RelativeToTallestObject" x="555" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="e501b58b-e3ce-452c-b7ce-c2349b274fd7"/>
			</line>
		</band>
	</columnHeader>
	<detail>
		<band height="24" splitType="Stretch">
			<line>
				<reportElement x="0" y="23" width="555" height="1" forecolor="#CCCCCC" uuid="0397e455-c3e6-4708-be2f-75efb51443a5"/>
			</line>
			<textField isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="1" y="2" width="253" height="20" isPrintWhenDetailOverflows="true" uuid="752263b1-e76b-41c5-a728-c17367094dab"/>
				<textElement verticalAlignment="Top"/>
				<textFieldExpression><![CDATA[$F{nompacote}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement stretchType="RelativeToTallestObject" x="256" y="2" width="99" height="20" uuid="4d1f1dc7-c08b-4323-a5cf-4c40fe757da0"/>
				<textElement textAlignment="Center" verticalAlignment="Top"/>
				<textFieldExpression><![CDATA[$F{qtdePacotes}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement stretchType="RelativeToTallestObject" x="355" y="2" width="99" height="20" uuid="923c045e-f2b7-409f-ae52-600a307d7cb5"/>
				<textElement textAlignment="Right" verticalAlignment="Top"/>
				<textFieldExpression><![CDATA[$F{totalBoletos}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement stretchType="RelativeToTallestObject" x="455" y="2" width="99" height="20" uuid="1063f040-0be4-4c44-8248-90e8b6c0ce64"/>
				<textElement textAlignment="Right" verticalAlignment="Top"/>
				<textFieldExpression><![CDATA[$F{totalPacotes}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="254" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="0726824e-9766-447d-9ebb-d368a40523b2"/>
			</line>
			<line>
				<reportElement x="355" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="f067f412-8417-42e1-ac61-6e3f956c8b80"/>
			</line>
			<line>
				<reportElement x="455" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="b3a8e518-f6c6-48ff-bf9d-9ecbabac374a"/>
			</line>
			<line>
				<reportElement x="555" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="980a83d6-513d-4f3b-b252-26fcc92150ae"/>
			</line>
			<line>
				<reportElement x="0" y="0" width="555" height="1" forecolor="#CCCCCC" uuid="f5bcac19-220d-4730-9c5e-937e84ab30aa"/>
			</line>
			<line>
				<reportElement x="0" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="ee92fc8a-1a5a-4b2e-bcb6-a1c565625969"/>
			</line>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="24" splitType="Stretch">
			<textField>
				<reportElement x="1" y="2" width="253" height="20" uuid="867715f2-c3dd-49b4-87ec-502ab8ea8598"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="255" y="2" width="99" height="20" uuid="d2d44ea4-14ce-497c-91e5-e4ddca94794a"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalQtdePacotes}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="355" y="2" width="99" height="20" uuid="2c84e21c-fe3f-499b-ac8a-6c0fbae60639"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalBoletos}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="455" y="2" width="99" height="20" uuid="f147fee0-a325-4b6b-8925-893b117ada8d"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vTotalPacotes}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="0" width="556" height="1" forecolor="#CCCCCC" uuid="20d6fbf7-a686-4b47-8794-ba0a2640f526"/>
			</line>
			<line>
				<reportElement x="0" y="23" width="556" height="1" forecolor="#CCCCCC" uuid="985b6309-8101-4b28-bc0b-4497e7f29f6d"/>
			</line>
			<line>
				<reportElement x="254" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="0a4de2eb-7786-402c-a4bf-2ee9cfa7e4ac"/>
			</line>
			<line>
				<reportElement x="0" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="14e7f5f7-d5ec-4990-8711-ce73130bc996"/>
			</line>
			<line>
				<reportElement x="355" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="0fb258ef-0cac-4870-9b00-2124e6dba94a"/>
			</line>
			<line>
				<reportElement x="455" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="0ff8c7e1-4577-4fa5-a2c6-cff056adecd3"/>
			</line>
			<line>
				<reportElement x="555" y="0" width="1" height="24" forecolor="#CCCCCC" uuid="9a2e1f0d-ba84-435e-9b28-fc6a205233c9"/>
			</line>
		</band>
	</summary>
	<noData>
		<band height="31">
			<textField>
				<reportElement x="0" y="6" width="255" height="20" uuid="e8628cb6-21d8-4ea1-aec8-39f983fb8c7d"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
