<?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="sales_report" pageWidth="595" pageHeight="842" columnWidth="539" leftMargin="28" rightMargin="28" topMargin="28" bottomMargin="28">
	<property name="ireport.scriptlethandling" value="0"/>
	<property name="ireport.encoding" value="UTF-8"/>
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<parameter name="itemDataSource" class="net.sf.jasperreports.engine.JRDataSource" isForPrompting="false"/>
	<parameter name="itemReport" class="net.sf.jasperreports.engine.JasperReport" isForPrompting="false"/>
	<parameter name="reportType" class="java.lang.String" isForPrompting="false"/>
	<parameter name="modifierDataSource" class="net.sf.jasperreports.engine.JRDataSource" isForPrompting="false"/>
	<parameter name="modifierReport" class="net.sf.jasperreports.engine.JasperReport" isForPrompting="false"/>
	<parameter name="currency" class="java.lang.String" isForPrompting="false"/>
	<parameter name="itemGrandTotal" class="java.lang.String" isForPrompting="false"/>
	<parameter name="modifierGrandTotal" class="java.lang.String" isForPrompting="false"/>
	<parameter name="reportTitle" class="java.lang.String" isForPrompting="false"/>
	<parameter name="reportTime" class="java.lang.String" isForPrompting="false"/>
	<parameter name="dateRange" class="java.lang.String" isForPrompting="false"/>
	<parameter name="terminalName" class="java.lang.String" isForPrompting="false"/>
	<parameter name="restaurantName" class="java.lang.String" isForPrompting="false"/>
	<parameter name="addressLine1" class="java.lang.String" isForPrompting="false"/>
	<parameter name="addressLine2" class="java.lang.String" isForPrompting="false"/>
	<parameter name="addressLine3" class="java.lang.String" isForPrompting="false"/>
	<parameter name="phone" class="java.lang.String" isForPrompting="false"/>
	<parameter name="itemGrossTotal" class="java.lang.Double"/>
	<parameter name="itemTaxTotal" class="java.lang.String"/>
	<parameter name="itemTotalQuantity" class="java.lang.Double"/>
	<parameter name="modifierGrossTotal" class="java.lang.Double"/>
	<parameter name="modifierTaxTotal" class="java.lang.String"/>
	<parameter name="modifierTotalQuantity" class="java.lang.Double"/>
	<parameter name="reportHeader" class="net.sf.jasperreports.engine.JasperReport" isForPrompting="false">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="itemDiscountTotal" class="java.lang.String"/>
	<parameter name="itemTotal" class="java.lang.String"/>
	<parameter name="modifierTotal" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="135" splitType="Stretch">
			<subreport isUsingCache="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="539" height="28"/>
				<subreportParameter name="restaurantName">
					<subreportParameterExpression><![CDATA[$P{restaurantName}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="addressLine1">
					<subreportParameterExpression><![CDATA[$P{addressLine1}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="addressLine2">
					<subreportParameterExpression><![CDATA[$P{addressLine2}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="addressLine3">
					<subreportParameterExpression><![CDATA[$P{addressLine3}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="phone">
					<subreportParameterExpression><![CDATA[$P{phone}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{reportHeader}]]></subreportExpression>
			</subreport>
			<textField pattern="" isBlankWhenNull="true">
				<reportElement key="textField-1" positionType="Float" mode="Transparent" x="2" y="29" width="537" height="26" backcolor="#FFFFFF"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Center">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-2" positionType="Float" x="2" y="57" width="71" height="19"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Report Time:]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-3" positionType="Float" x="2" y="76" width="71" height="19"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Date Range:]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-4" positionType="Float" x="2" y="95" width="71" height="19"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Terminal:]]></text>
			</staticText>
			<textField isBlankWhenNull="false">
				<reportElement key="textField-2" positionType="Float" x="73" y="57" width="201" height="19"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{reportTime}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="false">
				<reportElement key="textField-3" positionType="Float" x="73" y="76" width="201" height="19"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{dateRange}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="false">
				<reportElement key="textField-4" positionType="Float" x="73" y="95" width="201" height="19"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{terminalName}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement positionType="Float" mode="Transparent" x="2" y="114" width="71" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" lineSpacing="Single" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Currency:]]></text>
			</staticText>
			<textField isBlankWhenNull="false">
				<reportElement key="textField-5" positionType="Float" x="73" y="114" width="201" height="19"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{currency}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="70" splitType="Stretch">
			<subreport isUsingCache="true">
				<reportElement key="subreport-1" x="0" y="2" width="539" height="21"/>
				<subreportParameter name="totalQuantity">
					<subreportParameterExpression><![CDATA[$P{itemTotalQuantity}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="Total">
					<subreportParameterExpression><![CDATA[$P{itemTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="reportType">
					<subreportParameterExpression><![CDATA["Item Sales"]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="grossTotal">
					<subreportParameterExpression><![CDATA[$P{itemGrossTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="discountTotal">
					<subreportParameterExpression><![CDATA[$P{itemDiscountTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="grandTotal">
					<subreportParameterExpression><![CDATA[$P{itemGrandTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="taxTotal">
					<subreportParameterExpression><![CDATA[$P{itemTaxTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<dataSourceExpression><![CDATA[$P{itemDataSource}]]></dataSourceExpression>
				<subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{itemReport}]]></subreportExpression>
			</subreport>
			<subreport isUsingCache="true">
				<reportElement key="subreport-2" positionType="Float" x="0" y="47" width="539" height="21"/>
				<subreportParameter name="totalQuantity">
					<subreportParameterExpression><![CDATA[$P{modifierTotalQuantity}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="Total">
					<subreportParameterExpression><![CDATA[$P{modifierTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="reportType">
					<subreportParameterExpression><![CDATA["Modifier Sales"]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="grossTotal">
					<subreportParameterExpression><![CDATA[$P{modifierGrossTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="taxTotal">
					<subreportParameterExpression><![CDATA[$P{modifierTaxTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="grandTotal">
					<subreportParameterExpression><![CDATA[$P{modifierGrandTotal}]]></subreportParameterExpression>
				</subreportParameter>
				<dataSourceExpression><![CDATA[$P{modifierDataSource}]]></dataSourceExpression>
				<subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{modifierReport}]]></subreportExpression>
			</subreport>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="40" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement key="textField-10" x="443" y="24" width="93" height="16"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Right"/>
				<textFieldExpression class="java.lang.String"><![CDATA["Page: " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="93" y="24" width="350" height="16"/>
				<textElement textAlignment="Center">
					<font size="9"/>
				</textElement>
				<text><![CDATA[Generated by Floreant POS (www.floreant.org)]]></text>
			</staticText>
		</band>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
