<?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="informeCategoriaVenta" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="147"/>
	<property name="ireport.y" value="0"/>
	<parameter name="dataInicio" class="java.util.Date"/>
	<parameter name="dataFinal" class="java.util.Date"/>
	<parameter name="nomeEmpresa" class="java.lang.String"/>
	<parameter name="sql" class="java.lang.String"/>
	<queryString>
		<![CDATA[$P!{sql}]]>
	</queryString>
	<field name="CORRIDA_ID" class="java.math.BigDecimal"/>
	<field name="FECCORRIDA" class="java.sql.Timestamp"/>
	<field name="ORIGEN" class="java.lang.String"/>
	<field name="DESTINO" class="java.lang.String"/>
	<field name="DESCCATEGORIA" class="java.lang.String"/>
	<field name="QTDE" class="java.math.BigDecimal"/>
	<field name="descruta" class="java.lang.String"/>
	<field name="valor" class="java.math.BigDecimal"/>
	<field name="nombpuntoventa" class="java.lang.String"/>
	<group name="categoria">
		<groupExpression><![CDATA[$F{DESCCATEGORIA}]]></groupExpression>
		<groupHeader>
			<band height="50">
				<staticText>
					<reportElement x="0" y="30" width="66" height="20"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[SERVICIO]]></text>
				</staticText>
				<staticText>
					<reportElement x="66" y="30" width="132" height="20"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[ORIGEN]]></text>
				</staticText>
				<staticText>
					<reportElement x="198" y="30" width="131" height="20"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[DESTINO]]></text>
				</staticText>
				<staticText>
					<reportElement x="663" y="30" width="83" height="20"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[DATA VIAGEN]]></text>
				</staticText>
				<staticText>
					<reportElement x="0" y="6" width="100" height="20"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[CATEGORIA]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="100" y="6" width="180" height="20" isPrintWhenDetailOverflows="true"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DESCCATEGORIA}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="0" y="0" width="802" height="1"/>
				</line>
				<line>
					<reportElement x="0" y="49" width="802" height="1"/>
				</line>
				<staticText>
					<reportElement x="746" y="30" width="56" height="20"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[CANTIDAD]]></text>
				</staticText>
				<staticText>
					<reportElement x="329" y="30" width="117" height="20"/>
					<textElement/>
					<text><![CDATA[RUTA]]></text>
				</staticText>
				<staticText>
					<reportElement x="577" y="30" width="86" height="20"/>
					<textElement/>
					<text><![CDATA[TOTAL $]]></text>
				</staticText>
				<staticText>
					<reportElement x="446" y="30" width="131" height="20"/>
					<textElement/>
					<text><![CDATA[PUNTO VENTA]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="24"/>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="55" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="0" width="802" height="20"/>
				<textElement textAlignment="Center">
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[INFORME CATEGORIA VENTA]]></text>
			</staticText>
			<staticText>
				<reportElement x="598" y="34" width="51" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[EMISIÓN:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="649" y="34" width="153" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="34" width="54" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[EMPRESA:]]></text>
			</staticText>
			<staticText>
				<reportElement x="398" y="34" width="10" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[ - ]]></text>
			</staticText>
			<staticText>
				<reportElement x="262" y="34" width="51" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[PERÍODO:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="313" y="34" width="85" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$P{dataInicio}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="408" y="34" width="100" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$P{dataFinal}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="54" y="34" width="100" height="20"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{nomeEmpresa}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="0" y="0" width="66" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{CORRIDA_ID}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="746" y="0" width="56" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{QTDE}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="329" y="0" width="117" height="20"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{descruta}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="663" y="0" width="83" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{FECCORRIDA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="198" y="0" width="131" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{DESTINO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="66" y="0" width="132" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{ORIGEN}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="577" y="0" width="86" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{valor}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="446" y="0" width="131" height="20"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
