<?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="935"
		 pageHeight="368"
		 columnWidth="935"
		 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="hdr_fckurs" 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.util.Date"/>
	<field name="det_fdgiro_cliring_date" class="java.util.Date"/>
	<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="44"  isSplitAllowed="true" >
				<subreport  isUsingCache="true">
					<reportElement
						x="0"
						y="3"
						width="932"
						height="39"
						key="subreport-1"/>
					<subreportParameter  name="trans_no">
						<subreportParameterExpression><![CDATA[$P{trans_no}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "cr12_apsub.jasper"]]></subreportExpression>
				</subreport>
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="90"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="3"
						width="275"
						height="18"
						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="280"
						y="3"
						width="441"
						height="18"
						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="0"
						y="26"
						width="96"
						height="15"
						key="staticText-2"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[No. ]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="696"
						y="26"
						width="122"
						height="15"
						key="staticText-3"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Tanggal]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="-1"
						y="43"
						width="97"
						height="15"
						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="830"
						y="26"
						width="99"
						height="15"
						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="108"
						y="26"
						width="211"
						height="15"
						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="108"
						y="43"
						width="352"
						height="15"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftsupplier_name}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="62"
						width="932"
						height="1"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="87"
						width="932"
						height="0"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="3"
						y="67"
						width="21"
						height="16"
						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="31"
						y="67"
						width="197"
						height="17"
						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="411"
						y="67"
						width="120"
						height="16"
						key="staticText-7"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Metode Pembayaran]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="538"
						y="67"
						width="100"
						height="16"
						key="staticText-8"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[No. Reff]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="656"
						y="67"
						width="82"
						height="16"
						key="staticText-10"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Tgl. Giro]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="802"
						y="67"
						width="130"
						height="16"
						key="staticText-13"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11" isBold="true" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Jumlah]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="784"
						y="3"
						width="100"
						height="18"
						key="textField"/>
					<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="888"
						y="3"
						width="40"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER} + ""]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						style="test_css"
						x="98"
						y="27"
						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="98"
						y="44"
						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="820"
						y="27"
						width="7"
						height="13"
						key="staticText-34"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[ :]]></text>
				</staticText>
			</band>
		</title>
		<pageHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="23"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="3"
						y="3"
						width="21"
						height="18"
						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="31"
						y="3"
						width="364"
						height="18"
						key="textField"/>
					<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="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="412"
						y="3"
						width="119"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftpayment_method}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="537"
						y="3"
						width="112"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftgiro_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="784"
						y="3"
						width="148"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fctotal}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="657"
						y="3"
						width="119"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{det_fdgiro_date}]]></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="932"
						height="1"
						key="line-3"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
			</band>
		</pageFooter>
		<lastPageFooter>
			<band height="91"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="3"
						y="8"
						width="112"
						height="20"
						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="115"
						y="8"
						width="379"
						height="79"
						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="555"
						y="48"
						width="224"
						height="18"
						key="staticText-15"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Total Hutang :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="555"
						y="8"
						width="224"
						height="18"
						key="staticText-17"/>
					<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="784"
						y="8"
						width="146"
						height="18"
						key="textField"/>
					<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="784"
						y="69"
						width="144"
						height="18"
						key="textField"/>
					<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="555"
						y="69"
						width="224"
						height="18"
						key="staticText-19"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Total Pembayaran :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="555"
						y="28"
						width="224"
						height="18"
						key="staticText-31"/>
					<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="784"
						y="28"
						width="144"
						height="18"
						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>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="784"
						y="48"
						width="144"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcsub_amount}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="3"
						width="932"
						height="1"
						key="line-4"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
			</band>
		</lastPageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
