<?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="crprint01_po_local2_pajak_discount"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="612"
		 pageHeight="390"
		 columnWidth="612"
		 columnSpacing="0"
		 leftMargin="0"
		 rightMargin="0"
		 topMargin="0"
		 bottomMargin="0"
		 whenNoDataType="AllSectionsNoDetail"
		 isTitleNewPage="false"
		 isSummaryNewPage="false">
	<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">
		<defaultValueExpression ><![CDATA[$P{trans_no}]]></defaultValueExpression>
	</parameter>
	<parameter name="say" isForPrompting="false" class="java.lang.String"/>
	<parameter name="username" isForPrompting="true" class="java.lang.String"/>
	<parameter name="revisi_ke" isForPrompting="true" class="java.lang.String"/>
	<queryString><![CDATA[call sppuprint01_po_local($P{trans_no})]]></queryString>

	<field name="fttype" class="java.lang.String"/>
	<field name="hdr_ftcompany_name" class="java.lang.String"/>
	<field name="hdr_ftcategory" class="java.lang.String"/>
	<field name="hdr_ftcompany_add_vat" class="java.lang.String"/>
	<field name="hdr_ftiso" class="java.lang.String"/>
	<field name="hdr_ftpo_no" class="java.lang.String"/>
	<field name="hrd_fdtrans_date" class="java.sql.Date"/>
	<field name="hdr_ftsupplier_code" class="java.lang.String"/>
	<field name="hdr_ftsupplier_name" class="java.lang.String"/>
	<field name="hdr_ftterm_payment" class="java.lang.String"/>
	<field name="hdr_ftaddress" class="java.lang.String"/>
	<field name="hdr_ftphone" class="java.lang.String"/>
	<field name="hdr_ftfax" class="java.lang.String"/>
	<field name="hdr_ftphone2" class="java.lang.String"/>
	<field name="hdr_ftfax2" class="java.lang.String"/>
	<field name="hdr_fddelivery_date" class="java.sql.Date"/>
	<field name="hdr_ftcurrency_code" class="java.lang.String"/>
	<field name="hdr_ftcurrency_code2" class="java.lang.String"/>
	<field name="hdr_fcrate" class="java.math.BigDecimal"/>
	<field name="hdr_fcsub_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fcsub_amount_x" class="java.lang.String"/>
	<field name="hdr_ffdiscount" class="java.lang.Double"/>
	<field name="hdr_ffdiscount_x" class="java.math.BigDecimal"/>
	<field name="hdr_fcdiscount" class="java.math.BigDecimal"/>
	<field name="hdr_fcdiscount_x" class="java.lang.String"/>
	<field name="hdr_ffvat" class="java.lang.Double"/>
	<field name="hdr_fcvat" class="java.math.BigDecimal"/>
	<field name="hdr_fcvat_x" class="java.lang.String"/>
	<field name="hdr_fcother_cost" class="java.math.BigDecimal"/>
	<field name="hdr_fcother_cost_x" class="java.lang.String"/>
	<field name="hdr_fcamount" class="java.math.BigDecimal"/>
	<field name="hdr_fcamount_x" class="java.lang.String"/>
	<field name="hdr_fdschedule_delivery_date" class="java.sql.Date"/>
	<field name="hdr_ftcontact_supplier_name" class="java.lang.String"/>
	<field name="hdr_notes" class="java.lang.String"/>
	<field name="det_fnindex" class="java.lang.Integer"/>
	<field name="det_ftitem_code" class="java.lang.String"/>
	<field name="det_ftitem_name" class="java.lang.String"/>
	<field name="det_ftitem_code_supplier" class="java.lang.String"/>
	<field name="det_fnqty" class="java.lang.Double"/>
	<field name="det_fnqty_x" class="java.math.BigDecimal"/>
	<field name="det_ftuom_code" class="java.lang.String"/>
	<field name="det_fcprice" class="java.math.BigDecimal"/>
	<field name="det_fcprice_x" class="java.lang.String"/>
	<field name="det_ffdiscount" class="java.lang.String"/>
	<field name="det_fcdiscount" class="java.math.BigDecimal"/>
	<field name="det_fcdiscount_x" class="java.lang.String"/>
	<field name="det_fcamount" class="java.math.BigDecimal"/>
	<field name="det_fcamount_x" class="java.lang.String"/>

	<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(0) ]]></initialValueExpression>
	</variable>
	<variable name="urut2" class="java.lang.Integer" resetType="None" calculation="Count">
		<variableExpression><![CDATA[$V{urut2}]]></variableExpression>
	</variable>
	<variable name="urut3" class="java.lang.Integer" resetType="None" calculation="Nothing">
		<variableExpression><![CDATA[new java.lang.Integer(  ($V{urut}.intValue()) +($V{urut2}.intValue()) )]]></variableExpression>
	</variable>
	<variable name="jumlah" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{det_fcamount}]]></variableExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="120"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="15"
						y="8"
						width="485"
						height="23"
						key="staticText-130"/>
					<box></box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="14" isBold="true"/>
					</textElement>
				<text><![CDATA[ORDER PEMBELIAN]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="290"
						y="40"
						width="100"
						height="13"
						key="staticText-131"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[NO.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="290"
						y="53"
						width="100"
						height="13"
						key="staticText-132"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Tgl. PO]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="400"
						y="40"
						width="100"
						height="13"
						key="textField-63"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftpo_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="400"
						y="53"
						width="100"
						height="13"
						key="textField-64"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{hrd_fdtrans_date}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="390"
						y="40"
						width="10"
						height="13"
						key="staticText-134"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="390"
						y="53"
						width="10"
						height="13"
						key="staticText-135"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="290"
						y="66"
						width="100"
						height="13"
						key="staticText-141"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Halaman]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="390"
						y="66"
						width="10"
						height="13"
						key="staticText-142"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="400"
						y="66"
						width="100"
						height="13"
						key="textField-68"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="15"
						y="40"
						width="60"
						height="15"
						key="staticText-143"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Kepada :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="75"
						y="40"
						width="180"
						height="15"
						key="textField-69"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftsupplier_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="75"
						y="55"
						width="180"
						height="36"
						key="textField-70"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftaddress}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="116"
						width="485"
						height="0"
						key="line-12"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="15"
						y="102"
						width="20"
						height="13"
						key="staticText-144"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="100"
						y="102"
						width="200"
						height="13"
						key="staticText-145"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Nama Barang]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="300"
						y="102"
						width="40"
						height="13"
						key="staticText-146"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[QTY]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="340"
						y="102"
						width="70"
						height="13"
						key="staticText-147"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Harga]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="410"
						y="102"
						width="90"
						height="13"
						key="staticText-148"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Jumlah]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="100"
						width="485"
						height="0"
						key="line-13"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="35"
						y="102"
						width="65"
						height="13"
						key="staticText-149"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Kode]]></text>
				</staticText>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="14"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="15"
						y="1"
						width="20"
						height="13"
						key="textField-71"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="100"
						y="1"
						width="200"
						height="13"
						key="textField-72"
						stretchType="RelativeToTallestObject"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftitem_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="300"
						y="1"
						width="40"
						height="13"
						key="textField-73"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{det_fnqty}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="340"
						y="1"
						width="70"
						height="13"
						key="textField-74"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcprice}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="410"
						y="1"
						width="90"
						height="13"
						key="textField-75"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcamount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="35"
						y="1"
						width="65"
						height="13"
						key="textField-76"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftitem_code}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="105"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="407"
						y="76"
						width="90"
						height="13"
						key="staticText-151"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[___________]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="15"
						y="18"
						width="260"
						height="36"
						key="textField-78"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_notes}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="15"
						y="5"
						width="122"
						height="13"
						key="staticText-152"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Syarat Pembayaran  :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="410"
						y="5"
						width="89"
						height="13"
						key="textField-79"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcvat}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="301"
						y="36"
						width="80"
						height="13"
						key="staticText-154"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Disetujui Oleh]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="301"
						y="76"
						width="90"
						height="13"
						key="staticText-155"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[___________]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="15"
						y="59"
						width="260"
						height="43"
						key="staticText-156"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica" size="8" isBold="false"/>
					</textElement>
				<text><![CDATA[Catatan : 
Waktu penagihan, harap melampirkan Bukti Penerimaan Barang dan Order Pembelian ini.
Waktu barang diantar, harap menyebutkan No. PO ini.]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="1"
						width="485"
						height="2"
						key="line-15"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="301"
						y="89"
						width="25"
						height="13"
						key="staticText-157"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Tgl.]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="326"
						y="89"
						width="65"
						height="13"
						key="textField-80"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{hrd_fdtrans_date}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="407"
						y="89"
						width="25"
						height="13"
						key="staticText-158"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Tgl.]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="432"
						y="89"
						width="65"
						height="13"
						key="textField-81"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{hrd_fdtrans_date}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="137"
						y="5"
						width="138"
						height="13"
						key="textField-82"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftterm_payment}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="300"
						y="18"
						width="110"
						height="13"
						key="staticText-159"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Total :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="410"
						y="18"
						width="89"
						height="13"
						key="textField-83"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcamount}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="300"
						y="5"
						width="110"
						height="13"
						key="staticText-160"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[PPN :]]></text>
				</staticText>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
