<?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="RelatorioDescontoCupom" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="832" leftMargin="5" rightMargin="5" topMargin="20" bottomMargin="20" uuid="075a29e7-68c6-44a0-b788-c0614ed3c46a">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="AGRUPAR" class="java.lang.Boolean"/>
	<parameter name="DATA_INICIAL" class="java.util.Date"/>
	<parameter name="DATA_FINAL" class="java.util.Date"/>
	<parameter name="DATA_RESGATEINICIAL" class="java.util.Date"/>
	<parameter name="DATA_RESGATEFINAL" class="java.util.Date"/>
	<field name="descConvenio" class="java.lang.String"/>
	<field name="cliente" class="java.lang.String"/>
	<field name="codigoCupom" class="java.lang.String"/>
	<field name="puntoVentaEntrega" class="java.lang.String"/>
	<field name="dataEntrega" class="java.util.Date"/>
	<field name="puntoVentaResgate" class="java.lang.String"/>
	<field name="numeroTicket" class="java.lang.Long"/>
	<field name="valorTicket" class="java.math.BigDecimal"/>
	<field name="valorDescuento" class="java.math.BigDecimal"/>
	<field name="dataResgate" class="java.util.Date"/>
	<title>
		<band height="81" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="eb2d73d0-40a6-4b6d-9e8a-76806f943e47" mode="Transparent" x="0" y="0" width="394" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement uuid="8751af1a-64e8-41dc-a423-8ffd9686e093" mode="Transparent" x="811" y="25" width="21" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="66239550-5098-4a3a-ad99-ab9f1a420d1e" mode="Transparent" x="728" y="42" width="104" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement uuid="ce2d33f4-cfa1-48fe-9a70-5847e9ddd122" mode="Transparent" x="728" y="0" width="104" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="012dd1aa-b31e-4df4-b879-c3fc9785e27c" mode="Transparent" x="543" y="25" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="49b24665-8942-4812-b7b4-7aac56812b46" x="543" y="0" width="185" height="25"/>
				<textElement textAlignment="Right">
					<font size="9" isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="0b20a6e5-3ba4-495b-912f-ae8d87eda713" x="-1" y="58" width="832" height="1"/>
			</line>
			<textField isStretchWithOverflow="true">
				<reportElement uuid="8e18add1-0582-4bed-8896-5948d588cfa0" x="-1" y="59" width="833" height="15"/>
				<textElement verticalAlignment="Middle">
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="1381bb9d-c239-4937-8f02-70fb99a20ddd" positionType="Float" x="-1" y="78" width="832" height="1"/>
			</line>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="7dab3ec0-f044-41df-bdb7-8014567ea89b" mode="Transparent" x="1" y="25" width="100" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.dataDaVenda}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement uuid="1a3b14ee-760a-4576-acdc-adeb9453bee6" mode="Transparent" x="376" y="25" width="70" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_RESGATEINICIAL}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="2a540086-2a16-4860-b4c7-9167dcedc637" mode="Transparent" x="446" y="25" width="20" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy " isBlankWhenNull="false">
				<reportElement uuid="4b218deb-bdf8-4f40-ad37-75a9e90582eb" mode="Transparent" x="192" y="25" width="67" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="b290552a-a04c-46ea-a864-7262661a19be" mode="Transparent" x="276" y="25" width="100" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.dataDoResgate}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement uuid="d2e9b85f-5ac2-49d0-81c4-b35fef7c7c64" mode="Transparent" x="101" y="25" width="70" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="61eaab9e-3880-4e3a-8b30-aa4bc96c300c" mode="Transparent" x="172" y="25" width="20" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement uuid="292720be-a240-41a3-8d11-937d4bef11cb" mode="Transparent" x="466" y="25" width="67" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_RESGATEFINAL}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<columnHeader>
		<band height="16">
			<textField>
				<reportElement uuid="492a191f-1cfb-4d61-8160-93cc76bd897e" x="0" y="0" width="100" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.descConvenio}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="92b2990e-22f4-40c2-a15b-694d2a64696b" x="100" y="0" width="60" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.codigoCupom}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="62953a9e-1a36-4bea-bf59-d8ae933274ce" x="160" y="0" width="100" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.cliente}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="ae5dc587-ab3f-4a6e-b96b-378bce36ca54" x="260" y="0" width="70" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.dataEntrega}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="6981c29e-5d14-4c3b-a089-75e7189b76e3" x="330" y="0" width="130" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.puntoVentaEntrega}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="c76bc8a2-3da9-45bc-9946-812c882446b2" x="530" y="0" width="130" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.puntoVentaResgate}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="85120e15-b345-4f98-a42f-f0d61739b552" x="630" y="0" width="80" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.numeroTicket}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="fe0f8028-590b-4bd8-af16-a03115d31403" x="771" y="0" width="60" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.valorDescuento}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="70e884e2-3666-4f9c-bbe9-c18fae08aba6" x="710" y="0" width="60" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.valorTicket}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="e895467f-eaa7-4fa2-8743-b8ac1c555ee9" x="460" y="0" width="70" height="15"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.dataResgate}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="15" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="fe2a3916-54c9-448a-a841-d6bcd5c6a93f" stretchType="RelativeToTallestObject" x="0" y="0" width="100" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{descConvenio}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="1a3bdcab-e895-42e7-aa08-8318d94aeedd" stretchType="RelativeToTallestObject" x="100" y="0" width="60" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{codigoCupom}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="3fb24dba-72f1-4de9-bf07-89c2262f4ed5" stretchType="RelativeToTallestObject" x="160" y="0" width="100" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{cliente}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
				<reportElement uuid="dfbd7b2c-5c48-4fa3-8de9-29e196a9e382" stretchType="RelativeToTallestObject" x="259" y="0" width="70" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{dataEntrega}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="f7bad1bc-7e98-4ade-8266-1de9963ba2ed" stretchType="RelativeToTallestObject" x="330" y="0" width="130" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{puntoVentaEntrega}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
				<reportElement uuid="4b2cecd1-68ed-4e8e-812c-5fbf781afea4" stretchType="RelativeToTallestObject" x="460" y="0" width="70" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{dataResgate}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="b2c6022d-0944-4d9e-937e-8908401f86f1" stretchType="RelativeToTallestObject" x="530" y="0" width="130" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{puntoVentaResgate}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="false">
				<reportElement uuid="ec19c014-ea1a-41b6-8522-de41c6db8214" stretchType="RelativeToTallestObject" x="630" y="0" width="80" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numeroTicket}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="674774dd-179e-42a7-9d04-e8f322dc75a7" stretchType="RelativeToTallestObject" x="710" y="0" width="60" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorTicket}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="604abe51-72fc-4088-9edd-59519d05c3ab" stretchType="RelativeToTallestObject" x="771" y="0" width="60" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorDescuento}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<noData>
		<band height="50">
			<textField>
				<reportElement uuid="be7cf0fc-2faf-48f6-b8d1-fec82d255686" x="0" y="24" width="831" height="26"/>
				<textElement markup="none">
					<font size="11" isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
