<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.21.3.final using JasperReports Library version 6.21.3-4a3078d20785ebe464f18037d738d12fc98c13cf  -->
<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="StockTakeVarianceReport" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="f00b4a24-af11-4263-9e82-3966acf01017">
	<parameter name="stockSubCategory" class="java.lang.String">
		<defaultValueExpression><![CDATA["stockSubCategory"]]></defaultValueExpression>
	</parameter>
	<parameter name="stockCategory" class="java.lang.String">
		<defaultValueExpression><![CDATA["stockCategory"]]></defaultValueExpression>
	</parameter>
	<parameter name="itemNo" class="java.lang.String">
		<defaultValueExpression><![CDATA["itemCode"]]></defaultValueExpression>
	</parameter>
	<parameter name="year" class="java.lang.String"/>
	<parameter name="reportDate" class="java.lang.String"/>
	<parameter name="reportTime" class="java.lang.String"/>
	<parameter name="stockTakeDate" class="java.lang.String"/>
	<parameter name="storeLocation" class="java.lang.String">
		<parameterDescription><![CDATA["storeLocation"]]></parameterDescription>
	</parameter>
	<parameter name="balanceFilterStart" class="java.lang.String">
		<parameterDescription><![CDATA["balanceFilterStart"]]></parameterDescription>
	</parameter>
	<parameter name="balanceFilterEnd" class="java.lang.String">
		<parameterDescription><![CDATA["balanceFilterEnd"]]></parameterDescription>
	</parameter>
	<parameter name="lastInDateStart" class="java.lang.String">
		<parameterDescription><![CDATA["lastInDateStart"]]></parameterDescription>
	</parameter>
	<parameter name="lastOutDateStart" class="java.lang.String">
		<parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription>
	</parameter>
	<parameter name="lastInDateEnd" class="java.lang.String">
		<parameterDescription><![CDATA["lastInDateStart"]]></parameterDescription>
	</parameter>
	<parameter name="lastOutDateEnd" class="java.lang.String">
		<parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription>
	</parameter>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="stockSubCategory" class="java.lang.String"/>
	<field name="itemNo" class="java.lang.String"/>
	<field name="itemName" class="java.lang.String"/>
	<field name="unitOfMeasure" class="java.lang.String"/>
	<field name="lotNo" class="java.lang.String"/>
	<field name="expiryDate" class="java.lang.String"/>
	<field name="openingBalance" class="java.lang.String"/>
	<field name="cumStockIn" class="java.lang.String"/>
	<field name="cumStockOut" class="java.lang.String"/>
	<field name="currentBookBalance" class="java.lang.String"/>
	<field name="totalCumStockIn" class="java.lang.String"/>
	<field name="totalOpeningBalance" class="java.lang.String"/>
	<field name="totalCumStockOut" class="java.lang.String"/>
	<field name="totalCurrentBalance" class="java.lang.String"/>
	<field name="stockTakeDate" class="java.lang.String"/>
	<field name="lastInDate" class="java.lang.String"/>
	<field name="storeLocation" class="java.lang.String"/>
	<field name="stockTakeQty" class="java.lang.String"/>
	<field name="variance" class="java.lang.String"/>
	<field name="variancePercentage" class="java.lang.String"/>
	
	<group name="Group1" keepTogether="true" preventOrphanFooter="true">
		<groupExpression><![CDATA[$F{itemNo}]]></groupExpression>
		<groupHeader>
			<band height="19">
				<textField textAdjust="StretchHeight">
					<reportElement x="10" y="0" width="579" height="18" uuid="89a0d4b3-860b-4fa9-b8b4-cb1d9a19b053"/>
					<textElement textAlignment="Left" verticalAlignment="Top" markup="none">
						<font fontName="微軟正黑體" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{itemNo}+"   "+$F{itemName}+"   "+$F{unitOfMeasure}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="20" splitType="Stretch">
				<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				<printWhenExpression><![CDATA[$V{Group1_COUNT}  > 1]]></printWhenExpression>
				<staticText>
					<reportElement isPrintRepeatedValues="false" x="273" y="0" width="70" height="18" isRemoveLineWhenBlank="true" printWhenGroupChanges="Group1" uuid="73e4fded-40e2-44d5-b789-34a33978ed5a">
						<property name="com.jaspersoft.studio.unit.y" value="px"/>
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
						<property name="com.jaspersoft.studio.unit.width" value="px"/>
						<printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體" size="10"/>
					</textElement>
					<text><![CDATA[貨品總量：]]></text>
				</staticText>
				<textField textAdjust="StretchHeight" isBlankWhenNull="true">
					<reportElement isPrintRepeatedValues="false" x="344" y="0" width="64" height="18" isRemoveLineWhenBlank="true" printWhenGroupChanges="Group1" uuid="2a6656d2-98da-4b90-9c3b-e26f05ac07e2">
						<printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalCurrentBalance}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement isPrintRepeatedValues="false" x="0" y="19" width="799" height="1" isRemoveLineWhenBlank="true" printWhenGroupChanges="Group1" uuid="bb5e28fc-6ecd-4fd2-aef9-0729f29b8154">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
						<printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression>
					</reportElement>
				</line>
				<line>
					<reportElement x="273" y="0" width="135" height="1" uuid="57591898-c7d7-43ef-a078-9ca155d03a8c">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
						<property name="com.jaspersoft.studio.unit.width" value="px"/>
					</reportElement>
				</line>
			</band>
			<band height="1">
				<printWhenExpression><![CDATA[$V{Group1_COUNT}  == 1]]></printWhenExpression>
				<line>
					<reportElement isPrintRepeatedValues="false" x="0" y="0" width="799" height="1" isRemoveLineWhenBlank="true" uuid="3bfeae91-19a7-4048-853e-2986b230ddb6">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
						<printWhenExpression><![CDATA[$V{Group1_COUNT}  == 1]]></printWhenExpression>
					</reportElement>
				</line>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="58" splitType="Stretch">
			<line>
				<reportElement x="0" y="57" width="799" height="1" uuid="f513c3ec-7fbf-471f-a2e4-253a28919190">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
			<line>
				<reportElement x="0" y="53" width="799" height="1" uuid="351a15c1-61e4-4af3-bb48-dea07b8df3c2">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
			<staticText>
				<reportElement x="290" y="0" width="220" height="23" uuid="ae59d134-591e-4212-b594-6388bc15e629">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="16" isBold="true"/>
				</textElement>
				<text><![CDATA[庫存盤點報告]]></text>
			</staticText>
			<textField>
				<reportElement x="717" y="0" width="30" height="23" uuid="2b671e24-ab30-4c72-8d3c-0e68a7b7cb36">
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="100" y="30" width="335" height="23" uuid="d88b718c-786a-44b6-bdce-99e483bbe1f6"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{reportDate} + "(" + $P{reportTime}+")"]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="708" y="29" width="90" height="23" uuid="d117e97e-8158-4aef-9e48-d19456c4073c"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{stockTakeDate}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="747" y="0" width="21" height="23" uuid="5a1b4b58-b7b1-48c9-b229-7e96392c6425">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12"/>
				</textElement>
				<text><![CDATA[/]]></text>
			</staticText>
			<textField evaluationTime="Report">
				<reportElement x="768" y="0" width="30" height="23" uuid="5b03c2ae-7466-4029-8d79-d3ea8f128e06">
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="640" y="29" width="68" height="23" uuid="3741c716-b76a-442a-a4f8-0152853941d5">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[盤點日期：]]></text>
			</staticText>
			<staticText>
				<reportElement x="10" y="30" width="90" height="23" uuid="0628b331-5736-4f93-bed3-2278011456aa">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[報告日期：]]></text>
			</staticText>
			<staticText>
				<reportElement x="677" y="0" width="40" height="23" uuid="db6e3fb3-b375-497b-bfc2-1795ec7ecefb">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12"/>
				</textElement>
				<text><![CDATA[頁數]]></text>
			</staticText>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="20">
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="10" y="1" width="118" height="18" isPrintInFirstWholeBand="true" uuid="12b01171-4800-444d-b50a-e9b204f526a7">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[批號]]></text>
			</staticText>
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="130" y="1" width="98" height="18" isPrintInFirstWholeBand="true" uuid="8d6b48f0-38f2-45b9-b306-9e7c81b99d5f">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[到期日]]></text>
			</staticText>
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="344" y="1" width="64" height="18" isPrintInFirstWholeBand="true" uuid="38b97df1-2013-4b2d-a48d-06015c159953">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[現存存量]]></text>
			</staticText>
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="228" y="1" width="110" height="18" isPrintInFirstWholeBand="true" uuid="e95a755d-4ecb-4900-ac9a-3a6e3b9b3470">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[存貨位置]]></text>
			</staticText>
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="688" y="1" width="110" height="18" isPrintInFirstWholeBand="true" uuid="12a99c2d-6eb7-44c3-b442-37a89be3fe15">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[最後出入倉日期]]></text>
			</staticText>
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="558" y="1" width="100" height="18" isPrintInFirstWholeBand="true" uuid="921c16b3-172b-43b9-a090-24d2ee88a1b2">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[盤盈虧百分比]]></text>
			</staticText>
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="481" y="1" width="74" height="18" isPrintInFirstWholeBand="true" uuid="5dfc210f-b576-472b-a8a2-9db870c19b92">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[盤盈虧]]></text>
			</staticText>
			<staticText>
				<reportElement isPrintRepeatedValues="false" x="408" y="1" width="72" height="18" isPrintInFirstWholeBand="true" uuid="1590e6c1-5f5a-46ca-84ae-a45e2d4c5a0b">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[盤點數]]></text>
			</staticText>
			<line>
				<reportElement isPrintRepeatedValues="false" x="0" y="19" width="800" height="1" isPrintInFirstWholeBand="true" uuid="8bdc6e64-fc14-4fee-bfd3-f2e68abdc606">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
		</band>
	</columnHeader>
	<detail>
		<band height="18" splitType="Stretch">
			<textField textAdjust="StretchHeight">
				<reportElement x="130" y="0" width="98" height="18" uuid="608e1ba1-d37b-492e-a6c5-c8e97dfaf14a">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{expiryDate}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight">
				<reportElement x="10" y="0" width="118" height="18" uuid="1d7293e1-dab1-473e-bdb9-f13cc2b29e19">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{lotNo}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight">
				<reportElement x="344" y="0" width="64" height="18" uuid="48601d57-e240-4390-9ec7-71c77773ee86">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{currentBookBalance}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight">
				<reportElement x="228" y="0" width="110" height="18" uuid="f8664cfc-0eb6-497a-bce6-2171e3d9e43a">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{storeLocation}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight">
				<reportElement x="688" y="0" width="110" height="18" uuid="19641d4c-43f5-42ef-b76a-1efc06f9805a">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{stockTakeDate}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight">
				<reportElement x="408" y="0" width="72" height="18" uuid="02d11283-5166-45fd-a900-6ae62315ac0a">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{stockTakeQty}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight">
				<reportElement x="481" y="0" width="74" height="18" uuid="68b8a311-ac96-4df6-9b9f-fb0db60c8a2d">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{variance}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight">
				<reportElement x="558" y="0" width="100" height="18" uuid="c49f3615-0417-4724-a048-127fafce1d10">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{variancePercentage}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
</jasperReport>
