<?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="cr12_ap"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="960"
		 pageHeight="368"
		 columnWidth="960"
		 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.*" />

	<style 
		name="test_css"
		isDefault="false"
		fontName="Tahoma"
		fontSize="14"
	>
	</style>

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

	<field name="hdr_ftcompany_name" class="java.lang.String"/>
	<field name="hdr_ftcvs_no" class="java.lang.String"/>
	<field name="hdr_fdtrans_date" class="java.sql.Date"/>
	<field name="hdr_ftsupplier_name" class="java.lang.String"/>
	<field name="hdr_ftremarks" class="java.lang.String"/>
	<field name="hdr_fcamount" class="java.math.BigDecimal"/>
	<field name="hdr_fcsub_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fttrans_status_name" class="java.lang.String"/>
	<field name="hdr_ftjournal_no" class="java.lang.String"/>
	<field name="hdr_fcinvoice_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fcother_cost" class="java.math.BigDecimal"/>
	<field name="det_ftacc_no" class="java.lang.String"/>
	<field name="det_ftcoa_name" class="java.lang.String"/>
	<field name="hdr_fnpayment_method" class="java.lang.Integer"/>
	<field name="hdr_ftpayment_method" class="java.lang.String"/>
	<field name="det_ftgiro_no" class="java.lang.String"/>
	<field name="det_fcamount" class="java.math.BigDecimal"/>
	<field name="det_fdgiro_date" class="java.lang.String"/>
	<field name="det_fdgiro_cliring_date" class="java.lang.String"/>
	<field name="det_fcother_cost" class="java.math.BigDecimal"/>
	<field name="det_fctotal" class="java.math.BigDecimal"/>

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

		<group  name="g_trans_no" >
			<groupExpression><![CDATA[$F{hdr_ftcvs_no}]]></groupExpression>
			<groupHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupHeader>
			<groupFooter>
			<band height="4"  isSplitAllowed="true" >
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="79"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="3"
						y="3"
						width="275"
						height="17"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Helvetica" size="11" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="282"
						y="3"
						width="462"
						height="21"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="14" isBold="true"/>
					</textElement>
				<text><![CDATA[PEMBAYARAN HUTANG]]></text>
				</staticText>
				<staticText>
					<reportElement
						style="test_css"
						x="3"
						y="29"
						width="77"
						height="13"
						key="staticText-2"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[No. ]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="651"
						y="29"
						width="119"
						height="13"
						key="staticText-3"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Tanggal]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="2"
						y="45"
						width="78"
						height="14"
						key="staticText-4"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Helvetica" size="11" isBold="false"/>
					</textElement>
				<text><![CDATA[Supplier        ]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="28"
						width="163"
						height="14"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</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="91"
						y="29"
						width="211"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcvs_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="91"
						y="45"
						width="352"
						height="14"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftsupplier_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="651"
						y="61"
						width="119"
						height="16"
						key="staticText-20"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Kurs            ]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="61"
						width="163"
						height="16"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fckurs}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="753"
						y="3"
						width="100"
						height="12"
						key="textField-2"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</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="853"
						y="3"
						width="100"
						height="12"
						key="textField-3"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER} + ""]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="651"
						y="45"
						width="119"
						height="14"
						key="staticText-29"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Mata Uang ]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="45"
						width="163"
						height="14"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcurrency_code}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						style="test_css"
						x="82"
						y="29"
						width="7"
						height="13"
						key="staticText-30"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[ :]]></text>
				</staticText>
				<staticText>
					<reportElement
						style="test_css"
						x="82"
						y="45"
						width="7"
						height="14"
						key="staticText-31"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[ :]]></text>
				</staticText>
				<staticText>
					<reportElement
						style="test_css"
						x="772"
						y="45"
						width="7"
						height="13"
						key="staticText-32"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[ :]]></text>
				</staticText>
				<staticText>
					<reportElement
						style="test_css"
						x="772"
						y="62"
						width="7"
						height="13"
						key="staticText-33"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[ :]]></text>
				</staticText>
				<staticText>
					<reportElement
						style="test_css"
						x="772"
						y="29"
						width="7"
						height="13"
						key="staticText-34"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[ :]]></text>
				</staticText>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="27"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="3"
						width="960"
						height="1"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="24"
						width="960"
						height="0"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="3"
						y="7"
						width="21"
						height="14"
						key="staticText-5"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="317"
						y="7"
						width="162"
						height="14"
						key="staticText-6"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[No. Perkiraan]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="31"
						y="7"
						width="132"
						height="14"
						key="staticText-8"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[No. PO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="169"
						y="7"
						width="142"
						height="14"
						key="staticText-10"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[No. PI]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="770"
						y="7"
						width="183"
						height="14"
						key="staticText-13"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Jumlah]]></text>
				</staticText>
			</band>
		</columnHeader>
		<detail>
			<band height="19"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="3"
						y="3"
						width="21"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="317"
						y="3"
						width="447"
						height="13"
						key="textField"
						isPrintRepeatedValues="false"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftcoa_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="31"
						y="2"
						width="132"
						height="14"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftpo_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="770"
						y="3"
						width="183"
						height="14"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcpayment_amountUSD}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="169"
						y="3"
						width="142"
						height="14"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftpi_no}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="50"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="3"
						width="960"
						height="0"
						key="line-4"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
			</band>
		</pageFooter>
		<lastPageFooter>
			<band height="140"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="3"
						width="960"
						height="0"
						key="line-3"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="3"
						y="7"
						width="77"
						height="14"
						key="staticText-14"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Catatan :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="82"
						y="7"
						width="493"
						height="50"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftremarks}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="643"
						y="24"
						width="158"
						height="15"
						key="staticText-17"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Biaya :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="810"
						y="24"
						width="144"
						height="15"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcother_cost}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="3"
						y="118"
						width="210"
						height="20"
						key="staticText-21"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[(. . . . . . . .  .  . . . . .)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="42"
						y="64"
						width="141"
						height="20"
						key="staticText-22"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="11" isBold="false"/>
					</textElement>
				<text><![CDATA[ Dibuat Oleh :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="328"
						y="118"
						width="239"
						height="20"
						key="staticText-23"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[(. . . . . . . .  . . . . .)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="372"
						y="64"
						width="141"
						height="20"
						key="staticText-24"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="11" isBold="false"/>
					</textElement>
				<text><![CDATA[Diperiksa Oleh :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="713"
						y="118"
						width="212"
						height="20"
						key="staticText-25"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[(. . . . . . . . .  . . . . .)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="747"
						y="64"
						width="141"
						height="20"
						key="staticText-26"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="11" isBold="false"/>
					</textElement>
				<text><![CDATA[Diterima Oleh :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="643"
						y="41"
						width="158"
						height="15"
						key="staticText-35"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Sub Total Hutang :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="810"
						y="41"
						width="144"
						height="14"
						key="textField-4"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcinvoice_amount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="810"
						y="7"
						width="144"
						height="15"
						key="textField-5"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcamount}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="643"
						y="7"
						width="158"
						height="15"
						key="staticText-36"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Total Pembayaran :]]></text>
				</staticText>
			</band>
		</lastPageFooter>
		<summary>
			<band height="1"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
