<?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="report01_outstanding_po2"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="910"
		 pageHeight="765"
		 columnWidth="910"
		 columnSpacing="0"
		 leftMargin="0"
		 rightMargin="0"
		 topMargin="0"
		 bottomMargin="0"
		 whenNoDataType="NoPages"
		 isTitleNewPage="false"
		 isSummaryNewPage="false">
	<property name="ireport.scriptlethandling" value="2" />
	<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="po_type" isForPrompting="true" class="java.lang.String"/>
	<parameter name="supplier_code" isForPrompting="true" class="java.lang.String"/>
	<parameter name="ftitem_code" isForPrompting="true" class="java.lang.String"/>
	<parameter name="date_from" isForPrompting="true" class="java.util.Date"/>
	<parameter name="date_end" isForPrompting="true" class="java.util.Date"/>
	<parameter name="username" isForPrompting="true" class="java.lang.String"/>
	<queryString><![CDATA[call sppureport01_outstanding_po1($P{supplier_code},$P{date_from},$P{date_end},$P{po_type},$P{ftitem_code})]]></queryString>

	<field name="ftcompany_name" class="java.lang.String"/>
	<field name="ftpo_no" class="java.lang.String"/>
	<field name="fdpo_date" class="java.sql.Date"/>
	<field name="fdschedule_delivery_date" class="java.lang.String"/>
	<field name="ftsupplier_code" class="java.lang.String"/>
	<field name="ftsupplier_name" class="java.lang.String"/>
	<field name="fnpo_type" class="java.lang.Integer"/>
	<field name="ftitem_code" class="java.lang.String"/>
	<field name="ftitem_name" class="java.lang.String"/>
	<field name="fnqty_base" class="java.lang.Double"/>
	<field name="fnqty_accept_base" class="java.lang.Double"/>
	<field name="fnqty_outstanding" class="java.lang.Double"/>
	<field name="fnqty_excess" class="java.lang.Double"/>

	<variable name="urut" class="java.lang.Integer" resetType="Report" calculation="Count">
		<variableExpression><![CDATA[new java.lang.Integer(0) ]]></variableExpression>
		<initialValueExpression><![CDATA[new java.lang.Integer(1) ]]></initialValueExpression>
	</variable>

		<group  name="ftitem_code" >
			<groupExpression><![CDATA[$F{ftitem_code}]]></groupExpression>
			<groupHeader>
			<band height="22"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="19"
						width="300"
						height="0"
						key="line-3"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="2"
						width="458"
						height="15"
						key="textField-17"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsupplier_name}]]></textFieldExpression>
				</textField>
			</band>
			</groupHeader>
			<groupFooter>
			<band height="16"  isSplitAllowed="true" >
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="96"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="361"
						height="18"
						key="textField-1"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" size="12" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftcompany_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="256"
						y="18"
						width="323"
						height="18"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
					</textElement>
				<text><![CDATA[LAPORAN OUTSTANDING/EXCESS PO PER SUPPLIER]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="0"
						y="36"
						width="92"
						height="17"
						key="staticText-2"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<text><![CDATA[Periode transaksi :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="153"
						y="36"
						width="25"
						height="17"
						key="staticText-3"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<text><![CDATA[s/d]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="184"
						y="36"
						width="72"
						height="17"
						key="textField-2"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$P{date_end}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="62"
						width="890"
						height="0"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="91"
						width="890"
						height="0"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="0"
						y="68"
						width="32"
						height="18"
						key="staticText-4"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="104"
						y="68"
						width="102"
						height="18"
						key="staticText-5"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[No. PO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="209"
						y="68"
						width="319"
						height="18"
						key="staticText-6"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Nama Supplier]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="534"
						y="68"
						width="56"
						height="18"
						key="staticText-7"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Qty PO]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="685"
						y="5"
						width="100"
						height="18"
						key="textField-3"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="792"
						y="5"
						width="100"
						height="18"
						key="textField-4"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER} + ""]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="34"
						y="68"
						width="66"
						height="18"
						key="staticText-8"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Tgl. PO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="595"
						y="68"
						width="90"
						height="18"
						key="staticText-9"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Qty yang Dikirim]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="693"
						y="68"
						width="90"
						height="18"
						key="staticText-10"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Qty Outstanding]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="788"
						y="68"
						width="90"
						height="18"
						key="staticText-11"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Qty Excess]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="95"
						y="36"
						width="58"
						height="17"
						key="textField-5"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$P{date_end}]]></textFieldExpression>
				</textField>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="19"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="2"
						width="32"
						height="16"
						key="textField-7"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="34"
						y="2"
						width="66"
						height="16"
						key="textField-12"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{fdpo_date}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="104"
						y="2"
						width="102"
						height="16"
						key="textField-18"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftpo_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="209"
						y="2"
						width="319"
						height="16"
						key="textField-19"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsupplier_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="595"
						y="2"
						width="90"
						height="16"
						key="textField-21"
						isPrintWhenDetailOverflows="true"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{fnqty_accept_base}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="693"
						y="2"
						width="90"
						height="16"
						key="textField-22"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{fnqty_outstanding}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="788"
						y="2"
						width="90"
						height="16"
						key="textField-23"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{fnqty_excess}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="534"
						y="2"
						width="56"
						height="16"
						key="textField-24"
						isPrintWhenDetailOverflows="true"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{fnqty_base}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="41"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="EEE, d MMM yyyy HH:mm:ss" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="660"
						y="10"
						width="205"
						height="18"
						key="textField-15"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Tahoma" pdfFontName="Helvetica-Oblique" size="10" isItalic="true"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="557"
						y="10"
						width="100"
						height="18"
						key="textField-16"/>
					<box></box>
					<textElement>
						<font fontName="Tahoma" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{username}]]></textFieldExpression>
				</textField>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
