<?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="informeVentasPuntoVenta" 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="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="dataInicio" class="java.util.Date"/>
	<parameter name="dataFinal" class="java.util.Date"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="PUNTOVENTA_ID" class="java.math.BigDecimal"/>
	<field name="NOMBPUNTOVENTA" class="java.lang.String"/>
	<field name="QTDE_TOTAL_VENDIDOS" class="java.math.BigDecimal"/>
	<field name="VALOR_TOTAL_VENDIDOS" class="java.math.BigDecimal"/>
	<field name="QTDE_TOTAL_CANCELADO" class="java.math.BigDecimal"/>
	<field name="VALOR_TOTAL_CANCELADO" class="java.math.BigDecimal"/>
	<variable name="QTDE_TOTAL_VENDIDOS_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
		<variableExpression><![CDATA[$F{QTDE_TOTAL_VENDIDOS}]]></variableExpression>
	</variable>
	<variable name="QTDE_TOTAL_CANCELADO_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
		<variableExpression><![CDATA[$F{QTDE_TOTAL_CANCELADO}]]></variableExpression>
	</variable>
	<variable name="VALOR_TOTAL_VENDIDOS_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_TOTAL_VENDIDOS}]]></variableExpression>
	</variable>
	<variable name="VALOR_TOTAL_CANCELADO_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_TOTAL_CANCELADO}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="43" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="0" width="802" height="20"/>
				<textElement textAlignment="Center">
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[VENTAS PUNTO DE VENTA]]></text>
			</staticText>
			<staticText>
				<reportElement x="585" y="23" width="54" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[EMISÍON:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy h.mm a">
				<reportElement x="639" y="23" width="163" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="311" y="23" width="85" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$P{dataInicio}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="410" y="23" width="100" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$P{dataFinal}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="396" y="23" width="10" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[ - ]]></text>
			</staticText>
			<staticText>
				<reportElement x="260" y="23" width="51" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[PERÍODO:]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="46" splitType="Stretch">
			<line>
				<reportElement x="0" y="0" width="802" height="1"/>
			</line>
			<line>
				<reportElement x="0" y="23" width="802" height="1"/>
			</line>
			<staticText>
				<reportElement x="0" y="26" width="48" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[CÓDIGO]]></text>
			</staticText>
			<staticText>
				<reportElement x="48" y="26" width="168" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[NOMBRE]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="3" width="216" height="20"/>
				<textElement textAlignment="Center">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[PUNTO DE VENTA]]></text>
			</staticText>
			<staticText>
				<reportElement x="260" y="25" width="59" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[VENDIDO]]></text>
			</staticText>
			<staticText>
				<reportElement x="319" y="25" width="73" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[CANCELADO]]></text>
			</staticText>
			<staticText>
				<reportElement x="261" y="4" width="182" height="20"/>
				<textElement textAlignment="Center">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[CANTIDAD]]></text>
			</staticText>
			<staticText>
				<reportElement x="392" y="25" width="51" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL]]></text>
			</staticText>
			<staticText>
				<reportElement x="510" y="25" width="86" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[VENDIDO]]></text>
			</staticText>
			<staticText>
				<reportElement x="596" y="25" width="88" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[CANCELADO]]></text>
			</staticText>
			<staticText>
				<reportElement x="684" y="25" width="79" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL]]></text>
			</staticText>
			<staticText>
				<reportElement x="510" y="3" width="253" height="20"/>
				<textElement textAlignment="Center">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[VALOR]]></text>
			</staticText>
			<line>
				<reportElement x="0" y="45" width="802" height="1"/>
			</line>
		</band>
	</columnHeader>
	<detail>
		<band height="21" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="48" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{PUNTOVENTA_ID}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="48" y="0" width="168" height="20"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{NOMBPUNTOVENTA}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="261" y="0" width="58" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{QTDE_TOTAL_VENDIDOS}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="319" y="0" width="73" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{QTDE_TOTAL_CANCELADO}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="510" y="0" width="86" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR_TOTAL_VENDIDOS}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="596" y="0" width="88" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR_TOTAL_CANCELADO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="392" y="0" width="51" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{QTDE_TOTAL_VENDIDOS}.add($F{QTDE_TOTAL_CANCELADO})]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="684" y="1" width="79" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR_TOTAL_VENDIDOS}.add($F{VALOR_TOTAL_CANCELADO})]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="22" splitType="Stretch">
			<staticText>
				<reportElement x="216" y="0" width="45" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL: ]]></text>
			</staticText>
			<line>
				<reportElement x="0" y="0" width="802" height="1"/>
			</line>
			<textField>
				<reportElement x="261" y="1" width="58" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{QTDE_TOTAL_VENDIDOS_1}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="319" y="1" width="73" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{QTDE_TOTAL_CANCELADO_1}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="510" y="1" width="86" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{VALOR_TOTAL_VENDIDOS_1}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="596" y="0" width="88" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{VALOR_TOTAL_CANCELADO_1}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="392" y="1" width="51" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{QTDE_TOTAL_VENDIDOS_1}.add($V{QTDE_TOTAL_CANCELADO_1})]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="684" y="1" width="79" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{VALOR_TOTAL_VENDIDOS_1}.add($V{VALOR_TOTAL_CANCELADO_1})]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
