<?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="RelatorioCalculoComissao" pageWidth="1240" pageHeight="595" orientation="Landscape" columnWidth="1200" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="a0e4c57b-f708-4388-8e29-56a2a758254d">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="53"/>
	<subDataset name="dsDescontos" uuid="b7826494-a692-464e-8409-8b27d51e65f7">
		<field name="nomeDesconto" class="java.lang.String"/>
		<field name="valorDesconto" class="java.math.BigDecimal"/>
		<field name="tipoDesconto" class="java.lang.String"/>
	</subDataset>
	<subDataset name="dsReceitas" uuid="8c2ed585-40f3-494c-9a1a-919a1a19ad7b">
		<field name="data" class="java.util.Date"/>
		<field name="receitaComissao" class="java.math.BigDecimal"/>
		<field name="receitaBPR" class="java.math.BigDecimal"/>
		<field name="receitaGAP" class="java.math.BigDecimal"/>
		<field name="gapImpressa" class="java.math.BigDecimal"/>
		<field name="internet" class="java.math.BigDecimal"/>
		<field name="cancelados" class="java.math.BigDecimal"/>
		<field name="canceladosGAP" class="java.math.BigDecimal"/>
		<field name="devolvidos" class="java.math.BigDecimal"/>
		<field name="devolvidosGAP" class="java.math.BigDecimal"/>
		<field name="devolucoesOrigem" class="java.math.BigDecimal"/>
		<field name="devolucoesOrigemGAP" class="java.math.BigDecimal"/>
		<field name="receitaExcessoBagagem" class="java.math.BigDecimal"/>
		<field name="receitaSeguroOpcional" class="java.math.BigDecimal"/>
		<field name="contImpressa" class="java.lang.Integer"/>
		<field name="comissaoBPRDiaria" class="java.math.BigDecimal"/>
		<field name="comissaoExcessoBagagemDiaria" class="java.math.BigDecimal"/>
		<field name="comissaoSegOpcionalDiaria" class="java.math.BigDecimal"/>
		<field name="comissaoEntregaPassagemDiaria" class="java.math.BigDecimal"/>
	</subDataset>
	<parameter name="empresa" class="java.lang.String"/>
	<parameter name="puntoventa" class="java.lang.String"/>
	<parameter name="competencia" class="java.lang.String"/>
	<parameter name="subReport" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="SUBREPORT_RESOURCE_BUNDLE" class="java.util.ResourceBundle"/>
	<parameter name="dataInicialEDataFinal" class="java.lang.String"/>
	<field name="comissaoPagar" class="java.math.BigDecimal"/>
	<field name="comissaoBPR" class="java.math.BigDecimal"/>
	<field name="comissaoSegOpcional" class="java.math.BigDecimal"/>
	<field name="comissaoExcessoBagagem" class="java.math.BigDecimal"/>
	<field name="comissaoEntregaPassagem" class="java.math.BigDecimal"/>
	<field name="comissaoBonificaoMetas" class="java.math.BigDecimal"/>
	<field name="royaties" class="java.math.BigDecimal"/>
	<field name="retidoISS" class="java.math.BigDecimal"/>
	<field name="descontos" class="java.math.BigDecimal"/>
	<field name="lsDescontos" class="java.util.List"/>
	<field name="lsReceitas" class="java.util.List"/>
	<field name="comissaoOutros" class="java.math.BigDecimal"/>
	<field name="numPuntoVenta" class="java.lang.String"/>
	<field name="nombpuntoventa" class="java.lang.String"/>
	<field name="comissaoSeguro" class="java.math.BigDecimal"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="89" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="428" height="20" uuid="18c6b84c-7ac6-4dd9-a0c8-8c51ad01fd1d"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.calculoComissao}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement x="824" y="0" width="374" height="20" uuid="08997b69-e04b-4909-bc46-5b12622d7d7a"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="74" y="40" width="728" height="23" isPrintWhenDetailOverflows="true" uuid="e367d6ec-e940-4ee5-afe8-2d2a252dfc87"/>
				<textElement verticalAlignment="Middle">
					<font size="11"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="40" width="74" height="23" uuid="0716e36e-256a-4c37-822a-e15643c392ca"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="63" width="74" height="23" uuid="cd6e34a7-3223-4c54-91ac-d5b30b9aa6a7"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.agencia}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="74" y="63" width="728" height="23" isPrintWhenDetailOverflows="true" uuid="3564990b-f006-4bcf-8f24-9af8311ef8b2"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$P{puntoventa}]]></textFieldExpression>
			</textField>
			<textField pattern="">
				<reportElement x="74" y="20" width="728" height="20" isPrintWhenDetailOverflows="true" uuid="8a00eb79-8246-4e24-b142-a28c56786b13"/>
				<textElement verticalAlignment="Middle">
					<font size="11"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{competencia} != null ? $P{competencia} : $P{dataInicialEDataFinal}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="20" width="74" height="20" uuid="7252e248-1124-4165-bcab-9e91a8ba8e6b"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="86" width="1200" height="1" uuid="4b8a95e1-acc2-4f35-b2a6-835e2a171a4f"/>
			</line>
		</band>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="200" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="428" height="20" uuid="c2aaf65b-ab86-4c9d-a0bd-57089637b5cb"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.resumoCalculoComissao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="71" width="105" height="20" uuid="59e9464c-14c5-4220-814f-7b216001856b"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.comissaoPagar}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="105" y="71" width="100" height="20" uuid="dc999ac9-488c-469b-8b77-ef08e9ee5847"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoPagar}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="105" y="91" width="100" height="20" uuid="281a802b-0593-4388-9918-7f8ed9328a94"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoBPR}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="91" width="105" height="20" uuid="8bfb681c-0916-473a-b3ee-9af99adbfd6a"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.bpr}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="105" y="111" width="100" height="20" uuid="1a6cf169-e665-49a4-9794-9ff82c906b48"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoSegOpcional}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="111" width="105" height="20" uuid="68fdf0e7-e01c-4606-98ff-16e578672517"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.segOpcional}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="131" width="105" height="20" uuid="0bd8ff4b-2639-49d5-be6c-43764f38c785"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.excessoBagagem}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="105" y="131" width="100" height="20" uuid="4610e2b3-26f3-4f43-87dc-0bd241492984"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoExcessoBagagem}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="303" y="71" width="105" height="20" uuid="50699163-a783-4aad-8f87-c691a9920241"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.entregaPassagem}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="408" y="71" width="100" height="20" uuid="4ec64fe7-a252-40d7-bca1-cb836b3edf1d"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoEntregaPassagem}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="303" y="91" width="105" height="20" uuid="8f4dc9d1-2afd-4171-acb5-196e4472d156"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.bonificacaoMetas}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="408" y="91" width="100" height="20" uuid="5276e803-b98f-4d01-b9b7-b131c7b8b72b"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoBonificaoMetas}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="408" y="111" width="100" height="20" uuid="c7e208b2-8351-4d02-839a-215ba4e80fd5"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoSeguro}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="303" y="111" width="105" height="20" uuid="b0444473-c979-44d6-8033-c96c2a69f252"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.seguro}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="303" y="131" width="105" height="20" uuid="4fefe41a-7429-45a5-8f83-176de705ce87"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.retidoIss}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="408" y="131" width="100" height="20" uuid="c5e20c9d-f24a-447b-a0a3-3ae369a8ecaf"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{retidoISS}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="597" y="71" width="105" height="20" uuid="c2769ae8-a420-414b-a443-d1d4ff1c5f62"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.descontos}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="702" y="71" width="100" height="20" uuid="1124e332-a4b5-4cc4-afb1-1dca512b561b"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{descontos}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="20" width="1200" height="1" uuid="825a1d3d-ff5b-4ddb-ad07-51fa7e7a6d51"/>
			</line>
			<subreport isUsingCache="true">
				<reportElement x="0" y="155" width="1200" height="42" uuid="4a6bdca5-1ca5-4ee2-bd92-9c8eb2080bf7"/>
				<subreportParameter name="REPORT_RESOURCE_BUNDLE">
					<subreportParameterExpression><![CDATA[$P{SUBREPORT_RESOURCE_BUNDLE}]]></subreportParameterExpression>
				</subreportParameter>
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{lsReceitas})]]></dataSourceExpression>
				<subreportExpression><![CDATA[$P{subReport}]]></subreportExpression>
			</subreport>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="702" y="91" width="100" height="20" uuid="235abf59-1771-4161-b6ea-adf9d0aadb27"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{comissaoOutros}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="597" y="91" width="105" height="20" uuid="74fec3e2-0c2a-4048-a83f-b5478da3f4d9"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.outros}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement x="106" y="46" width="695" height="20" uuid="4d92ffcf-e20a-4b3c-8aad-996b7cce4b6a"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="1" y="46" width="105" height="20" uuid="0716cf78-e4b1-49ed-ac4e-3b8b5e2223a0"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.agencia}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement x="107" y="26" width="694" height="20" uuid="78013a11-c0ca-4225-97ca-6c0fb9ce0d38"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numPuntoVenta}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="2" y="26" width="105" height="20" uuid="2b93adb6-77f8-40c4-9068-d135d4d68762"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.numeroAgencia}]]></textFieldExpression>
			</textField>
			<textField pattern="R$ ###0.00" isBlankWhenNull="true">
				<reportElement x="702" y="111" width="100" height="20" uuid="4f7e87b4-95c1-47ad-b82c-56f250d2a4c6"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{royaties}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="597" y="111" width="105" height="20" uuid="6a2d66af-3357-4859-959e-6aaae629744d"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.royaties}]]></textFieldExpression>
			</textField>
		</band>
		<band height="68">
			<textField>
				<reportElement x="0" y="0" width="446" height="23" uuid="267b8506-3e28-4dc0-8456-602e1730ef8e"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.descontos}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="184" y="23" width="118" height="20" uuid="b0272605-6527-44ce-9d1b-404ac0f4255e"/>
				<textElement textAlignment="Left" verticalAlignment="Top" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.valor}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="302" y="23" width="144" height="20" uuid="5e2a6025-c0b4-4724-875e-22244a86ed8c"/>
				<textElement textAlignment="Left" verticalAlignment="Top" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.tipoDesconto}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="23" width="184" height="20" uuid="7a8191b9-3506-49ef-9491-f3a1a3716dbe"/>
				<textElement textAlignment="Left" verticalAlignment="Top" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.itemDesconto}]]></textFieldExpression>
			</textField>
			<componentElement>
				<reportElement x="0" y="43" width="446" height="21" uuid="b8b51a8b-5204-478f-9ea5-c598625b54ec"/>
				<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
					<datasetRun subDataset="dsDescontos" uuid="94e0d53c-5e1a-4169-bba1-68bb35a39099">
						<dataSourceExpression><![CDATA[new  net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{lsDescontos})]]></dataSourceExpression>
					</datasetRun>
					<jr:listContents height="21" width="446">
						<textField>
							<reportElement x="0" y="0" width="184" height="20" uuid="a6e0c70d-93a2-4e17-98c1-1c361ab963ee"/>
							<textElement textAlignment="Left" verticalAlignment="Top">
								<font size="8"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{nomeDesconto}]]></textFieldExpression>
						</textField>
						<textField pattern="R$ ###0.00">
							<reportElement x="184" y="0" width="118" height="20" uuid="65bdb39a-1301-4c44-bd70-2f9a2a6efda2"/>
							<textElement textAlignment="Left" verticalAlignment="Top">
								<font size="8"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{valorDesconto}]]></textFieldExpression>
						</textField>
						<textField>
							<reportElement x="302" y="0" width="144" height="20" uuid="084fc3dd-1d7e-4514-aabb-8368eec06a28"/>
							<textElement textAlignment="Left" verticalAlignment="Top">
								<font size="8"/>
							</textElement>
							<textFieldExpression><![CDATA[$F{tipoDesconto}]]></textFieldExpression>
						</textField>
					</jr:listContents>
				</jr:list>
			</componentElement>
			<line>
				<reportElement x="0" y="23" width="446" height="1" uuid="d5411f8d-1d12-4a8b-ba27-a821259cb294"/>
			</line>
			<line>
				<reportElement x="0" y="0" width="1200" height="1" uuid="ae0104c1-3e33-454a-b0f3-2ddd0ab1ed17"/>
			</line>
		</band>
	</detail>
	<noData>
		<band height="21">
			<textField pattern="MM/yyyy">
				<reportElement x="0" y="0" width="1198" height="20" isPrintWhenDetailOverflows="true" uuid="bcb05394-b468-4bac-81f0-981656fef979"/>
				<textElement verticalAlignment="Middle">
					<font size="11"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
