<?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="RelatorioVendasComissao" 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="579"/>
	<property name="ireport.y" value="32"/>
	<parameter name="fecInicio" class="java.lang.String"/>
	<parameter name="fecFinal" class="java.lang.String"/>
	<parameter name="noDataRelatorio" class="java.lang.String"/>
	<parameter name="empresa" class="java.lang.String"/>
	<parameter name="nombPuntoVenta" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="numFolioSistema" class="java.lang.String"/>
	<field name="corridaId" class="java.lang.Integer"/>
	<field name="fecHorViaje" class="java.util.Date"/>
	<field name="numAsiento" class="java.lang.String"/>
	<field name="precioTotalPagado" class="java.math.BigDecimal"/>
	<field name="fecHorVenta" class="java.util.Date"/>
	<field name="nombPuntoVenta" class="java.lang.String"/>
	<variable name="vPrecioTotalPagado" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{precioTotalPagado}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="81" splitType="Stretch">
			<textField>
				<reportElement uuid="43b2c28d-4760-4890-b00d-25e931e79c74" x="0" y="0" width="620" 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="638" y="0" width="164" height="20"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b" x="0" y="20" width="620" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicio} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinal}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="8fa1c53b-1da7-4d4d-a75c-ab1543acae2a" x="53" y="41" width="139" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="a91f6081-4740-4e36-8965-41b6cde4cc20" x="0" y="41" width="53" height="20"/>
				<textElement/>
				<text><![CDATA[Empresa:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="96d6ce56-5bf3-460a-b3ba-a81890a2caed" x="0" y="61" width="53" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.puntoVenta}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="b75cac86-9c93-40ec-b667-afd66f26103d" x="53" y="61" width="748" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$P{nombPuntoVenta}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="21" splitType="Stretch">
			<textField>
				<reportElement uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec" x="607" y="0" width="195" height="20"/>
				<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="23" splitType="Stretch">
			<textField>
				<reportElement uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e" x="0" y="0" width="102" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.numFolioSistema}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="a2ea7cea-d8ab-4c0e-bee0-4dafb3866c1f" x="721" y="0" width="80" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.precioTotalPagado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="43d6ee75-8459-4b9e-8cbe-ca2819d3198a" x="580" y="0" width="120" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.fecHorVenta}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="2d666aaf-65a6-4c3f-acd3-e65483a78256" x="357" y="1" width="80" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.numAsiento}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="8a39b1b1-6ebd-4f33-adea-c28a9988eaae" x="437" y="1" width="120" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.fecHorViaje}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="811af238-a027-48e9-bd6f-eee885474929" positionType="Float" x="0" y="21" width="802" height="1"/>
			</line>
			<textField>
				<reportElement uuid="cfac237e-06b7-4c98-b7f1-285f5ec2c8b3" x="122" y="0" width="100" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.corridaId}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="fba2b82b-5c64-4262-9f82-6a96f3c8f74e" x="244" y="0" width="112" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{label.nombPuntoVenta}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="22" splitType="Stretch">
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="b18fae2e-6454-42b0-a68c-04cf790ddfd6" stretchType="RelativeToTallestObject" x="721" y="0" width="80" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{precioTotalPagado}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="cebb836f-d485-4d50-98e0-0678bb715fb9" stretchType="RelativeToTallestObject" x="122" y="0" width="100" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{corridaId}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="09b0cd36-1946-406f-923a-172b8a4f1ac6" stretchType="RelativeToTallestObject" x="357" y="1" width="80" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{numAsiento}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy h.mm a" isBlankWhenNull="true">
				<reportElement uuid="8cdbdd14-c9f1-45d8-bf41-a4066930f5a4" stretchType="RelativeToTallestObject" x="437" y="1" width="120" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{fecHorViaje}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="c98526c0-c36f-42df-9308-452ac671044c" stretchType="RelativeToTallestObject" x="0" y="0" width="102" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy h.mm a" isBlankWhenNull="true">
				<reportElement uuid="040c8de3-f836-40bc-96bd-761a7f5b46ef" stretchType="RelativeToTallestObject" x="580" y="0" width="120" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{fecHorVenta}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="d3e27fd7-7159-4d76-8cc7-d346ecc188d4" stretchType="RelativeToTallestObject" x="244" y="0" width="112" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{nombPuntoVenta}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="26" splitType="Stretch">
			<line>
				<reportElement uuid="c8dfd524-14cc-454c-afc0-3ce9f8d0ead8" positionType="Float" x="0" y="2" width="802" height="1"/>
			</line>
			<textField>
				<reportElement uuid="38a0f957-1b50-46f9-b79f-c631baf8937b" x="104" y="5" width="615" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="f22b1a6f-2e0b-4771-acf3-b7460874f730" stretchType="RelativeToTallestObject" x="721" y="5" width="80" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{vPrecioTotalPagado}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="24">
			<textField isBlankWhenNull="true">
				<reportElement uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091" positionType="Float" x="0" y="0" width="555" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
