<?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="RelatorioVendasConexao" 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="0.75"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<style name="Crosstab Data Text" hAlign="Center"/>
	<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="puntoventa" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="nombpuntoventa" class="java.lang.String"/>
	<field name="nombempresa" class="java.lang.String"/>
	<field name="importe" class="java.math.BigDecimal"/>
	<field name="descpago" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="81" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="620" 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="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="20" width="620" 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>
			<textField>
				<reportElement x="53" y="41" width="748" height="20" uuid="8fa1c53b-1da7-4d4d-a75c-ab1543acae2a"/>
				<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="41" width="53" height="20" uuid="a91f6081-4740-4e36-8965-41b6cde4cc20"/>
				<text><![CDATA[Empresa:]]></text>
			</staticText>
			<textField>
				<reportElement x="0" y="61" width="53" height="20" uuid="1a29d731-e121-4507-8c0b-e93f437e8d80"/>
				<textFieldExpression><![CDATA[$R{label.puntoVenta}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="53" y="61" width="748" height="20" uuid="53d53aa5-d8c9-43c6-b17d-1e6b49697237"/>
				<textFieldExpression><![CDATA[$P{puntoventa}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="22">
			<textField>
				<reportElement x="606" y="1" width="195" height="20" uuid="701a95fd-2c75-40c1-bb18-0e784375e289"/>
				<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>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="78" splitType="Stretch">
			<crosstab>
				<reportElement x="0" y="0" width="802" height="78" uuid="904f7c5a-f414-4e1b-b933-ffb824f25575"/>
				<crosstabHeaderCell>
					<cellContents>
						<box>
							<topPen lineWidth="0.25"/>
							<bottomPen lineWidth="0.25"/>
						</box>
						<textField isStretchWithOverflow="true" isBlankWhenNull="true">
							<reportElement stretchType="RelativeToTallestObject" x="117" y="0" width="123" height="30" forecolor="#000000" uuid="7512873e-79c6-4cf2-9277-2702a4e861a6"/>
							<box leftPadding="2">
								<leftPen lineWidth="0.25"/>
								<bottomPen lineWidth="0.0"/>
							</box>
							<textElement verticalAlignment="Middle" markup="none"/>
							<textFieldExpression><![CDATA[$R{label.descpago}]]></textFieldExpression>
						</textField>
						<textField isStretchWithOverflow="true" isBlankWhenNull="true">
							<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="117" height="30" forecolor="#000000" uuid="92a91170-a8ae-4bff-bd8d-e6473e901982"/>
							<box leftPadding="2">
								<leftPen lineWidth="0.0"/>
								<bottomPen lineWidth="0.0"/>
							</box>
							<textElement verticalAlignment="Middle" markup="none"/>
							<textFieldExpression><![CDATA[$R{label.nombPuntoVenta}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabHeaderCell>
				<rowGroup name="nombpuntoventa" width="117" totalPosition="End">
					<bucket class="java.lang.String">
						<bucketExpression><![CDATA[$F{nombpuntoventa}]]></bucketExpression>
					</bucket>
					<crosstabRowHeader>
						<cellContents backcolor="#F0F8FF" mode="Transparent">
							<box>
								<topPen lineWidth="0.0"/>
								<bottomPen lineWidth="0.25"/>
							</box>
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="117" height="25" uuid="26ee5370-4618-492a-a4b2-625a85a63b7e"/>
								<box leftPadding="2"/>
								<textElement textAlignment="Left" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$V{nombpuntoventa}]]></textFieldExpression>
							</textField>
						</cellContents>
					</crosstabRowHeader>
					<crosstabTotalRowHeader>
						<cellContents backcolor="#005FB3" mode="Transparent">
							<box>
								<topPen lineWidth="0.0"/>
								<bottomPen lineWidth="0.0"/>
							</box>
						</cellContents>
					</crosstabTotalRowHeader>
				</rowGroup>
				<rowGroup name="descpago" width="123" totalPosition="End">
					<bucket class="java.lang.String">
						<bucketExpression><![CDATA[$F{descpago}]]></bucketExpression>
					</bucket>
					<crosstabRowHeader>
						<cellContents backcolor="#F0F8FF" mode="Transparent">
							<box>
								<leftPen lineWidth="0.25"/>
							</box>
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="123" height="25" uuid="f8a5166e-d5fe-4231-9179-cd6380f48ecd"/>
								<box leftPadding="2"/>
								<textElement textAlignment="Left" verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$V{descpago}]]></textFieldExpression>
							</textField>
						</cellContents>
					</crosstabRowHeader>
					<crosstabTotalRowHeader>
						<cellContents backcolor="#BFE1FF" mode="Transparent">
							<box>
								<topPen lineWidth="0.25"/>
								<leftPen lineWidth="0.25"/>
								<bottomPen lineWidth="0.25"/>
							</box>
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="123" height="25" forecolor="#000000" uuid="c5d2af03-d189-4cfe-bb29-5d21f1d4c271"/>
								<box leftPadding="2">
									<topPen lineWidth="0.0"/>
								</box>
								<textElement verticalAlignment="Middle" markup="none"/>
								<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
							</textField>
						</cellContents>
					</crosstabTotalRowHeader>
				</rowGroup>
				<columnGroup name="nombempresa" height="30">
					<bucket class="java.lang.String">
						<bucketExpression><![CDATA[$F{nombempresa}]]></bucketExpression>
					</bucket>
					<crosstabColumnHeader>
						<cellContents backcolor="#F0F8FF" mode="Transparent">
							<box>
								<topPen lineWidth="0.25"/>
								<leftPen lineWidth="0.25"/>
								<bottomPen lineWidth="0.25"/>
							</box>
							<textField isStretchWithOverflow="true" isBlankWhenNull="true">
								<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="124" height="30" uuid="bd83b727-846d-46a2-991f-979065d54489"/>
								<box rightPadding="0"/>
								<textElement verticalAlignment="Middle"/>
								<textFieldExpression><![CDATA[$V{nombempresa}]]></textFieldExpression>
							</textField>
						</cellContents>
					</crosstabColumnHeader>
					<crosstabTotalColumnHeader>
						<cellContents mode="Transparent"/>
					</crosstabTotalColumnHeader>
				</columnGroup>
				<measure name="importeMeasure" class="java.math.BigDecimal" calculation="Sum">
					<measureExpression><![CDATA[$F{importe}]]></measureExpression>
				</measure>
				<crosstabCell width="124" height="25">
					<cellContents mode="Transparent">
						<box>
							<leftPen lineWidth="0.25"/>
						</box>
						<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
							<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="124" height="25" uuid="87348f54-18cf-4ab8-91f6-1cee0e674818"/>
							<box rightPadding="0"/>
							<textElement verticalAlignment="Middle"/>
							<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell width="124" height="0" rowTotalGroup="nombpuntoventa">
					<cellContents backcolor="#005FB3" mode="Transparent">
						<box>
							<topPen lineWidth="0.0"/>
						</box>
					</cellContents>
				</crosstabCell>
				<crosstabCell width="50" columnTotalGroup="nombempresa">
					<cellContents backcolor="#BFE1FF" mode="Transparent">
						<textField>
							<reportElement style="Crosstab Data Text" x="0" y="0" width="50" height="25" uuid="5e0ed85a-2b5b-4a98-b500-a3ac3fd951a0"/>
							<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell rowTotalGroup="nombpuntoventa" columnTotalGroup="nombempresa">
					<cellContents backcolor="#005FB3" mode="Transparent">
						<textField>
							<reportElement style="Crosstab Data Text" x="0" y="0" width="50" height="25" forecolor="#FFFFFF" uuid="57ef4861-998c-40bf-bbc0-6863c81d9665"/>
							<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell width="124" height="25" rowTotalGroup="descpago">
					<cellContents backcolor="#BFE1FF" mode="Transparent">
						<box>
							<topPen lineWidth="0.25"/>
							<leftPen lineWidth="0.25"/>
							<bottomPen lineWidth="0.25"/>
						</box>
						<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
							<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="124" height="25" forecolor="#000000" uuid="51125553-b9f3-4d1e-aa6c-f0d1256b48af"/>
							<box>
								<topPen lineWidth="0.0"/>
							</box>
							<textElement verticalAlignment="Middle"/>
							<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell rowTotalGroup="descpago" columnTotalGroup="nombempresa">
					<cellContents backcolor="#BFE1FF" mode="Transparent">
						<textField>
							<reportElement style="Crosstab Data Text" x="0" y="0" width="50" height="25" uuid="dc16ce87-9e47-41f4-87f8-5012fbdb0a1d"/>
							<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
			</crosstab>
		</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>
