<?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="FGStockOutTraceabilityReport" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c40e235b-365d-48a0-a1b8-a8e0ece2cdd3">
	<property name="com.jaspersoft.studio.unit." value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
	<subDataset name="Dataset1" uuid="dfaf2f9f-3937-4f84-9b1f-fd0ecf2f1ee9">
		<queryString>
			<![CDATA[]]>
		</queryString>
	</subDataset>
	<parameter name="stockSubCategory" class="java.lang.String">
		<defaultValueExpression><![CDATA["stockSubCategory"]]></defaultValueExpression>
	</parameter>
	<parameter name="date" class="java.lang.String">
		<defaultValueExpression><![CDATA["date"]]></defaultValueExpression>
	</parameter>
	<parameter name="stockCategory" class="java.lang.String">
		<defaultValueExpression><![CDATA["stockCategory"]]></defaultValueExpression>
	</parameter>
	<parameter name="reportDate" class="java.lang.String"/>
	<parameter name="reportTime" class="java.lang.String"/>
	<parameter name="deliveryPeriodStart" class="java.lang.String"/>
	<parameter name="deliveryPeriodEnd" class="java.lang.String"/>
	<parameter name="year" class="java.lang.String"/>
	<parameter name="itemNo" class="java.lang.String">
		<defaultValueExpression><![CDATA["itemCode"]]></defaultValueExpression>
	</parameter>
	<parameter name="lastOutDateStart" class="java.lang.String">
		<parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription>
	</parameter>
	<parameter name="lastOutDateEnd" class="java.lang.String">
		<parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription>
	</parameter>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="deliveryDate" class="java.lang.String"/>
	<field name="itemNo" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.name" value="code"/>
		<property name="com.jaspersoft.studio.field.label" value="code"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="items"/>
		<fieldDescription><![CDATA[]]></fieldDescription>
	</field>
	<field name="itemName" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.name" value="name"/>
		<property name="com.jaspersoft.studio.field.label" value="name"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="items"/>
		<fieldDescription><![CDATA[]]></fieldDescription>
	</field>
	<field name="unitOfMeasure" class="java.lang.String"/>
	<field name="dnNo" class="java.lang.String"/>
	<field name="customerId" class="java.lang.String"/>
	<field name="customerName" class="java.lang.String"/>
	<field name="qty" class="java.lang.String"/>
	<field name="qtyNumeric" class="java.math.BigDecimal"/>
	<field name="truckNo" class="java.lang.String"/>
	<field name="driver" class="java.lang.String"/>
	<field name="deliveryOrderNo" class="java.lang.String"/>
	<field name="stockSubCategory" class="java.lang.String"/>
	<variable name="totalDeliveredQtyPerDeliveryOrder" class="java.math.BigDecimal" resetType="Group" resetGroup="Group1" incrementType="Group" incrementGroup="Group1" calculation="Sum">
		<variableExpression><![CDATA[$F{qtyNumeric} != null ? $F{qtyNumeric} : java.math.BigDecimal.ZERO]]></variableExpression>
	</variable>
	<group name="Group1" keepTogether="true">
		<groupExpression><![CDATA[$F{itemNo}]]></groupExpression>
		<groupHeader>
			<band height="18">
				<textField textAdjust="StretchHeight">
					<reportElement isPrintRepeatedValues="false" x="0" y="0" width="579" height="18" printWhenGroupChanges="Group1" uuid="58e608b3-c8a2-4a69-9b43-657bbde9ca81"/>
					<textElement textAlignment="Left" verticalAlignment="Top" markup="styled">
						<font fontName="微軟正黑體" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{itemNo}+"   "+$F{itemName}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="20">
				<printWhenExpression><![CDATA[$V{Group1_COUNT}  > 1]]></printWhenExpression>
				<staticText>
					<reportElement x="424" y="0" width="78" height="19" uuid="17df3070-773d-4bac-8045-6b59d8673bb4"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體" size="10" isBold="true"/>
					</textElement>
					<text><![CDATA[每單交貨總數：]]></text>
				</staticText>
				<textField pattern="#,##0">
					<reportElement x="502" y="0" width="80" height="19" uuid="939e4c5b-176c-4154-aabd-bf06c2a0e594"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="微軟正黑體" size="10" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{totalDeliveredQtyPerDeliveryOrder}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="0" y="19" width="799" height="1" uuid="69c9e68d-5a48-4284-b977-d12984bde9bc">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
				</line>
				<line>
					<reportElement x="424" y="0" width="158" height="1" uuid="e6aafc03-9f85-4fbb-aabe-c10f936cea7e">
						<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 x="0" y="0" width="799" height="1" uuid="a7505f85-e928-4098-b9ba-644111766b84">
						<property name="com.jaspersoft.studio.unit.height" value="px"/>
					</reportElement>
				</line>
			</band>
		</groupFooter>
	</group>
	<pageHeader>
		<band height="99" splitType="Stretch">
			<textField evaluationTime="Report">
				<reportElement x="760" y="0" width="30" height="23" uuid="cfdec3a5-cc0f-421a-85ab-0eb49f96b7df">
					<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="670" y="0" width="40" height="23" uuid="25f66e24-ad42-4ff6-ac86-ac1d1c6f3b03">
					<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="740" y="0" width="20" height="23" uuid="e0a5035b-8a7c-49c0-b012-baf4325774b7">
					<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="710" y="0" width="30" height="23" uuid="997d0e6e-4e9a-4027-91b6-a2bdf02971fa">
					<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="8" y="30" width="90" height="23" uuid="5f860195-7684-4674-bcba-5e3af52a55da">
					<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>
				<reportElement x="711" y="53" width="79" height="23" uuid="b1bba504-8ae4-4985-909c-e598c2e6001b"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{year}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="640" y="30" width="71" height="23" uuid="0986cf8b-0ade-490d-bcb5-f2b1aceaab15">
					<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="12" isBold="true"/>
				</textElement>
				<text><![CDATA[報告時間：]]></text>
			</staticText>
			<staticText>
				<reportElement x="640" y="53" width="71" height="23" uuid="3e31701d-067e-46eb-b691-a88829562c15">
					<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="12" isBold="true"/>
				</textElement>
				<text><![CDATA[年份：]]></text>
			</staticText>
			<textField>
				<reportElement x="711" y="30" width="79" height="23" uuid="89bfffda-987c-4c76-bd0e-cfdb63d8bd0e"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{reportTime}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="98" y="30" width="190" height="23" uuid="f89e2dd2-10de-4ec1-af98-4b8dfb4aac4c"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{reportDate}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="300" y="0" width="210" height="23" uuid="e34c7a3e-ea38-4b1b-bbdc-cfe4a5f969de">
					<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="98" y="53" width="336" height="23" uuid="f855785e-5316-4c6c-a612-556f58dff006">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{lastOutDateStart} +  " 到 " + $P{lastOutDateEnd}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="8" y="53" width="90" height="23" uuid="1543eecf-9964-43b0-9103-e885209265e4">
					<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="12" isBold="true"/>
				</textElement>
				<text><![CDATA[成品出倉日期:]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="81" width="92" height="18" uuid="eb3506cf-6d61-4f70-901f-9576df17e66c">
					<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 x="582" y="81" width="100" height="18" uuid="a9c9239d-6640-4196-9ce4-5be81522a99b">
					<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="92" y="81" width="140" height="18" uuid="0f570907-538c-4d1e-a261-5e275f2c3fbe">
					<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[DN編號]]></text>
			</staticText>
			<staticText>
				<reportElement x="502" y="81" width="80" height="18" uuid="aa069323-43b9-448c-840e-97054ad358ef">
					<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="232" y="81" width="130" height="18" uuid="d8d2ecce-255a-46a5-9ded-949df09192de">
					<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 x="362" y="81" width="140" height="18" uuid="805d0e34-eda9-45a6-9490-83d2282db99b">
					<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 x="682" y="81" width="100" height="18" uuid="0f680edd-048d-4ee1-8a00-2ec33eaf2c88">
					<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>
			<line>
				<reportElement x="0" y="80" width="799" height="1" uuid="7c6becba-07e5-436b-aa4f-48e1711511bd">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
			<line>
				<reportElement x="0" y="76" width="799" height="1" uuid="2485d906-1840-42a5-9594-69acee9c2eb4">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
			<line>
				<reportElement x="1" y="98" width="799" height="1" uuid="dfbdb31d-ffaf-40f0-a898-07eeb289a5ed">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
			</line>
		</band>
	</pageHeader>
	<detail>
		<band height="18" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="92" height="18" uuid="7bb350a8-a127-4a47-aa7a-c86119864db9">
					<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{deliveryDate}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="92" y="0" width="140" height="18" uuid="4b76d458-5318-402d-9828-c8e7d5a2197a">
					<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{dnNo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="362" y="0" width="140" height="18" uuid="f239f480-ae9f-45f3-a03e-562eab10c304">
					<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{customerName}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="502" y="0" width="80" height="18" uuid="143501a2-6a00-4fe2-84c4-2689ad68cbc4">
					<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>
				<textFieldExpression><![CDATA[$F{qty}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="582" y="0" width="100" height="18" uuid="1d124434-b3f7-48dd-89c2-29ea10c28941">
					<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>
				<textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="682" y="0" width="100" height="18" uuid="62c1bc61-05ac-450f-9385-75f2f1cba9fd">
					<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>
				<textFieldExpression><![CDATA[$F{truckNo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="232" y="0" width="130" height="18" uuid="8d42562f-843e-43e7-bb4a-5bf08f9adc89">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement verticalAlignment="Top">
					<font fontName="微軟正黑體" size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deliveryOrderNo}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
</jasperReport>
