<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
		 name="cr02pos"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="842"
		 pageHeight="1190"
		 columnWidth="801"
		 columnSpacing="0"
		 leftMargin="11"
		 rightMargin="30"
		 topMargin="5"
		 bottomMargin="20"
		 whenNoDataType="AllSectionsNoDetail"
		 isTitleNewPage="false"
		 isSummaryNewPage="false"
		 isIgnorePagination="true">
	<property name="ireport.scriptlethandling" value="0" />
	<property name="ireport.encoding" value="UTF-8" />
	<import value="java.util.*" />
	<import value="net.sf.jasperreports.engine.*" />
	<import value="net.sf.jasperreports.engine.data.*" />

	<parameter name="trans_no" isForPrompting="true" class="java.lang.String"/>
	<queryString><![CDATA[call sppprint02_pos($P{trans_no})]]></queryString>

	<field name="hdr_ftcompany_name" class="java.lang.String"/>
	<field name="hdr_fdtrans_date" class="java.sql.Date"/>
	<field name="hdr_ftpor_no" class="java.lang.String"/>
	<field name="hdr_ftpos_no" class="java.lang.String"/>
	<field name="hdr_fftotal_qty" class="java.lang.Float"/>
	<field name="fttype_barang_code" class="java.lang.String"/>
	<field name="fttype_barang_name" class="java.lang.String"/>
	<field name="ftcolor_code" class="java.lang.String"/>
	<field name="ftcolor_name" class="java.lang.String"/>
	<field name="ftsize_code" class="java.lang.String"/>
	<field name="ftsize_name" class="java.lang.String"/>
	<field name="det_ffqty" class="java.lang.Float"/>

	<variable name="urut" class="java.lang.Integer" resetType="Group" resetGroup="g_ftpos_no" calculation="Count">
		<variableExpression><![CDATA[new java.lang.Integer(0) ]]></variableExpression>
		<initialValueExpression><![CDATA[new java.lang.Integer(1) ]]></initialValueExpression>
	</variable>
	<variable name="total" class="java.lang.Float" resetType="Group" resetGroup="g_ftpos_no" calculation="Sum">
		<variableExpression><![CDATA[$F{det_ffqty}]]></variableExpression>
	</variable>

		<group  name="g_ftpos_no" >
			<groupExpression><![CDATA[$F{hdr_ftpos_no}]]></groupExpression>
			<groupHeader>
			<band height="82"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="4"
						y="57"
						width="758"
						height="0"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="5"
						y="80"
						width="757"
						height="0"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="4"
						y="60"
						width="23"
						height="16"
						key="staticText-6"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="34"
						y="60"
						width="244"
						height="16"
						key="staticText-7"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
					</textElement>
				<text><![CDATA[MODEL/TYPE]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="287"
						y="60"
						width="254"
						height="16"
						key="staticText-8"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
					</textElement>
				<text><![CDATA[COLOR]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="701"
						y="60"
						width="55"
						height="16"
						key="staticText-11"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
					</textElement>
				<text><![CDATA[TOTAL]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="101"
						y="3"
						width="0"
						height="45"
						key="line-8"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="195"
						y="3"
						width="1"
						height="45"
						key="line-9"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="492"
						y="3"
						width="0"
						height="45"
						key="line-10"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="598"
						y="3"
						width="0"
						height="45"
						key="line-11"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="14"
						y="5"
						width="71"
						height="17"
						key="staticText-17"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<text><![CDATA[DATE]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="111"
						y="6"
						width="71"
						height="18"
						key="staticText-18"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<text><![CDATA[POS NO.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="241"
						y="6"
						width="71"
						height="18"
						key="staticText-19"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<text><![CDATA[CUSTOMER]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="510"
						y="5"
						width="71"
						height="18"
						key="staticText-20"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<text><![CDATA[QUANTITY]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="9"
						y="25"
						width="87"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{hdr_fdtrans_date}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="105"
						y="25"
						width="90"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftpos_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="501"
						y="25"
						width="92"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.Float"><![CDATA[$F{hdr_fftotal_qty}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="4"
						y="3"
						width="0"
						height="45"
						key="line-14"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="600"
						y="60"
						width="89"
						height="16"
						key="staticText-26"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
					</textElement>
				<text><![CDATA[Size]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="618"
						y="23"
						width="126"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftpor_no}]]></textFieldExpression>
				</textField>
			</band>
			</groupHeader>
			<groupFooter>
			<band height="40"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="2"
						width="762"
						height="0"
						key="line-3"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="600"
						y="8"
						width="89"
						height="18"
						key="staticText-21"/>
					<box></box>
					<textElement textAlignment="Right">
						<font/>
					</textElement>
				<text><![CDATA[TOTAL :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="701"
						y="8"
						width="55"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.Float"><![CDATA[$V{total}]]></textFieldExpression>
				</textField>
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="58"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="182"
						y="34"
						width="213"
						height="20"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
					</textElement>
				<text><![CDATA[PRODUCTION ORDER SHEET]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="5"
						y="2"
						width="256"
						height="18"
						key="textField-1"/>
					<box></box>
					<textElement>
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="4"
						y="20"
						width="187"
						height="13"
						key="staticText-15"/>
					<box></box>
					<textElement textAlignment="Left">
						<font size="8"/>
					</textElement>
				<text><![CDATA[Logistic & Planning Departement]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="4"
						y="33"
						width="160"
						height="14"
						key="staticText-16"/>
					<box></box>
					<textElement textAlignment="Left">
						<font size="8"/>
					</textElement>
				<text><![CDATA[DMI/PPIC/F-01.Rav 0.01/02/08]]></text>
				</staticText>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="24"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="4"
						y="1"
						width="23"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="701"
						y="2"
						width="58"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.Float"><![CDATA[$F{det_ffqty}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="34"
						y="2"
						width="244"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{fttype_barang_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="287"
						y="2"
						width="293"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftcolor_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="600"
						y="2"
						width="89"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsize_name}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<lastPageFooter>
			<band height="71"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="11"
						y="9"
						width="63"
						height="14"
						key="staticText-22"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<text><![CDATA[NOTE :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="14"
						y="23"
						width="357"
						height="42"
						key="staticText-23"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<text><![CDATA[1. Delivery Schedule		: ASAP(Secepatnya)
2. Desctination			: To Be Advised(Tba)
3. Forecasted Production Time	:
]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="395"
						y="27"
						width="161"
						height="0"
						key="line-13"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="400"
						y="9"
						width="150"
						height="14"
						key="staticText-24"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<text><![CDATA[AUTHORIZED SIGNATURE]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="400"
						y="53"
						width="150"
						height="14"
						key="staticText-25"/>
					<box></box>
					<textElement textAlignment="Center">
						<font/>
					</textElement>
				<text><![CDATA[......]]></text>
				</staticText>
			</band>
		</lastPageFooter>
		<summary>
			<band height="125"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
