<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.17.0.final using JasperReports Library version 6.17.0-6d93193241dd8cc42629e188b94f9e0bc5722efd  -->
<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="StockBalanceReport" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b6cc79a8-6025-4490-938c-b90508da62d0">
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
	<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="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="lastInDate" class="java.lang.String">
		<parameterDescription><![CDATA["lastInDate"]]></parameterDescription>
	</parameter>
	<parameter name="lastOutDate" class="java.lang.String">
		<parameterDescription><![CDATA["lastOutDate"]]></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="currentBalance" 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="lastOutDate" class="java.lang.String"/>
	<field name="lastInDate" class="java.lang.String"/>
	<field name="avgUnitPrice" class="java.lang.String"/>
	<field name="reOrderQty" class="java.lang.String"/>
	<field name="storeLocation" class="java.lang.String"/>
	<field name="misInputAndLost" class="java.lang.String"/>
	<field name="totalMisInputAndLost" class="java.lang.String"/>
	<field name="totalVariance" class="java.lang.String"/>
	<field name="totalDefectiveGoods" class="java.lang.String"/>
	<field name="totalStockBalance" class="java.lang.String"/>
	<field name="defectiveGoods" class="java.lang.String"/>
	<field name="variance" class="java.lang.String"/>
	<group name="Group1" keepTogether="true">
		<groupExpression><![CDATA[$F{itemNo}]]></groupExpression>
		<groupHeader>
			<band height="24">
				<textField>
					<reportElement x="669" y="0" width="51" height="20" uuid="7faf8dc0-de0e-49bb-abbc-8c6e4818e6c6">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{avgUnitPrice}]]></textFieldExpression>
				</textField>
				<textField textAdjust="StretchHeight">
					<reportElement x="488" y="0" width="59" height="20" uuid="2a8242a0-f8a7-4e2c-9084-1e54d35857d6">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalVariance}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="610" y="0" width="59" height="20" uuid="0994677f-b92e-4229-8540-98a41d6fb246">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalCurrentBalance}]]></textFieldExpression>
				</textField>
				<textField textAdjust="StretchHeight">
					<reportElement x="242" y="0" width="66" height="20" uuid="689d73a8-2b3e-4f34-bbb3-0272e40b6d4d">
						<property name="com.jaspersoft.studio.unit.width" value="px"/>
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalOpeningBalance}]]></textFieldExpression>
				</textField>
				<textField textAdjust="StretchHeight">
					<reportElement x="547" y="0" width="63" height="20" uuid="eef9c887-4acb-4dc9-b96a-e9b9db1dea9a">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalDefectiveGoods}]]></textFieldExpression>
				</textField>
				<textField textAdjust="StretchHeight">
					<reportElement x="428" y="0" width="60" height="20" uuid="c2fba89a-c051-4982-8eec-60ad665302ca">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalMisInputAndLost}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="368" y="0" width="60" height="20" uuid="d2bc3efc-fd44-42b8-b451-7b6bc5e77cea">
						<property name="com.jaspersoft.studio.unit.width" value="px"/>
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalCumStockOut}]]></textFieldExpression>
				</textField>
				<textField textAdjust="StretchHeight" pattern="#,##0">
					<reportElement x="180" y="0" width="62" height="20" uuid="52e894e2-98f9-4691-a52d-8c53780999b6"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="微軟正黑體" size="10"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression>
				</textField>
				<textField textAdjust="StretchHeight" pattern="#,##0">
					<reportElement x="10" y="0" width="48" height="20" uuid="ff45d0af-b31c-481b-a2b3-957582bfd48e"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="微軟正黑體" size="10"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{itemNo}]]></textFieldExpression>
				</textField>
				<textField textAdjust="StretchHeight" pattern="#,##0">
					<reportElement x="58" y="0" width="112" height="20" uuid="40c3dc48-d215-4c2f-8f79-7a8bdfd1877e"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="微軟正黑體" size="10"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{itemName}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="720" y="0" width="78" height="20" uuid="b58a8878-7093-4af2-b1a8-cf44de1fb4a6">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalStockBalance}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="308" y="0" width="60" height="20" uuid="0e884be5-64f2-4ade-a2bb-50275accbcdd">
						<property name="com.jaspersoft.studio.unit.width" value="px"/>
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{totalCumStockIn}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="1">
				<printWhenExpression><![CDATA[$V{Group1_COUNT}  > 1]]></printWhenExpression>
				<line>
					<reportElement x="0" y="0" width="799" height="1" uuid="f22e204d-b70a-4e70-99ce-e1e6d60d6934">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
				</line>
			</band>
		</groupFooter>
	</group>
	<background>
		<band height="17" splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="87" splitType="Stretch">
			<staticText>
				<reportElement x="351" y="0" width="101" height="23" uuid="e670cb8d-d591-4418-8bce-36398e286e1f">
					<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>
			<staticText>
				<reportElement x="548" y="58" width="62" height="28" uuid="b208e97a-9d94-40ba-9922-3399d8e2f3ac">
					<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 x="308" y="58" width="60" height="28" uuid="e95456ea-35da-4b71-8dc6-f11cf1c519d5">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[纍計存入量]]></text>
			</staticText>
			<staticText>
				<reportElement x="428" y="58" width="60" height="28" uuid="7a1741f9-6a23-4c04-81dd-c5e87c7a5142">
					<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 x="488" y="58" width="60" height="28" uuid="66934b77-2d44-4218-b459-680e2aeca2e4">
					<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>
			<textField>
				<reportElement x="100" y="30" width="335" height="23" uuid="849b3e33-5b07-41df-b761-2e2411d5d26e"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{reportDate}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="640" y="29" width="68" height="23" uuid="38bc1ddd-2d49-417c-a0f4-15180f8dc295">
					<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>
			<line>
				<reportElement x="0" y="57" width="799" height="1" uuid="1c04b46e-491f-42a7-b8e0-2418dd068ace">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
			<staticText>
				<reportElement x="677" y="0" width="40" height="23" uuid="0adb4709-fdd4-4c69-894e-6e4382527335">
					<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>
				<reportElement x="708" y="29" width="90" height="23" uuid="dabd2770-cc5c-4337-8ba9-a09cd9fa2b32"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{reportTime}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="717" y="0" width="30" height="23" uuid="3e587156-dab8-4359-b08d-d8d501ddb9e7">
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="747" y="0" width="21" height="23" uuid="23430213-bfa0-4ba8-9eed-19ab51662a0c">
					<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>
			<staticText>
				<reportElement x="10" y="30" width="90" height="23" uuid="d0a07e02-a35c-4a9c-aea7-e7a97465e6e4">
					<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>
			<textField evaluationTime="Report">
				<reportElement x="768" y="0" width="30" height="23" uuid="de74acaa-0000-47f4-8358-825ac920082d">
					<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>
			<line>
				<reportElement x="0" y="53" width="799" height="1" uuid="b68828f3-fafc-410a-85b4-a9ea4037a28f">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
			<line>
				<reportElement x="0" y="86" width="799" height="1" uuid="bebf0ac8-d6c7-4bee-9f1c-fe064db93be5">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
			<staticText>
				<reportElement x="242" y="58" width="66" height="28" uuid="360cf13a-93e7-45d4-8a4d-9e9506a6ad3f">
					<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 x="368" y="58" width="60" height="28" uuid="a3ea1b07-2108-409f-adee-8478374d767a">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<text><![CDATA[纍計存出量]]></text>
			</staticText>
			<staticText>
				<reportElement x="610" y="58" width="59" height="28" uuid="4efdbfd9-2ad2-45de-aab9-b234d43b6026">
					<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 x="10" y="58" width="48" height="28" uuid="f9475692-14cd-49e8-aac0-ad972aca79e1">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[貨品編號]]></text>
			</staticText>
			<staticText>
				<reportElement x="180" y="58" width="62" height="28" uuid="e6c47019-de01-4e76-b4f8-cad3826d88b0">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[單位]]></text>
			</staticText>
			<staticText>
				<reportElement x="58" y="58" width="112" height="28" uuid="759e71ab-8f6b-4664-9669-1da737d41343">
					<property name="com.jaspersoft.studio.unit.y" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="10" isBold="false"/>
				</textElement>
				<text><![CDATA[貨品名稱]]></text>
			</staticText>
			<staticText>
				<reportElement x="720" y="58" width="78" height="28" uuid="722cd2e3-3d4a-4edd-a2fc-ca82fd34efb6">
					<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 x="669" y="58" width="51" height="28" uuid="c2ce0900-1c3a-4732-ba95-5ba2d60e8f78">
					<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>
		</band>
	</pageHeader>
</jasperReport>
