<?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_import_sementara"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="935"
		 pageHeight="737"
		 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_fttrans_status_name" class="java.lang.String"/>
	<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_fcsub_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fcother_cost" class="java.math.BigDecimal"/>
	<field name="hdr_ftjournal_no" class="java.lang.String"/>
	<field name="hdr_fcinvoice_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fckurs" class="java.math.BigDecimal"/>
	<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_fcother_costIDR" class="java.math.BigDecimal"/>
	<field name="det_fctotal" class="java.math.BigDecimal"/>
	<field name="det_fcamount_x" class="java.math.BigDecimal"/>
	<field name="fcother_costIDR" class="java.math.BigDecimal"/>
	<field name="det_fdgiro_date" class="java.sql.Date"/>
	<field name="det_fdgiro_cliring_date" class="java.sql.Date"/>
	<field name="det_fcother_cost" class="java.math.BigDecimal"/>
	<field name="hdr_ftcurrency_code" class="java.lang.String"/>

	<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="171"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="487"
						height="21"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Helvetica" size="18" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="190"
						y="34"
						width="498"
						height="23"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[PEMBAYARAN HUTANG IMPORT]]></text>
				</staticText>
				<staticText>
					<reportElement
						style="test_css"
						x="3"
						y="65"
						width="132"
						height="20"
						key="staticText-2"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[No. AP         :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="625"
						y="65"
						width="133"
						height="20"
						key="staticText-3"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Tgl. Transaksi  :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="2"
						y="105"
						width="133"
						height="20"
						key="staticText-4"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" 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="764"
						y="65"
						width="168"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</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="137"
						y="65"
						width="211"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</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="137"
						y="105"
						width="352"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftsupplier_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="625"
						y="105"
						width="134"
						height="20"
						key="staticText-20"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Kurs                   :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="764"
						y="105"
						width="100"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fckurs}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="3"
						y="85"
						width="132"
						height="20"
						key="staticText-28"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[No. Jurnal     :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="137"
						y="85"
						width="230"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftjournal_no}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="625"
						y="85"
						width="134"
						height="20"
						key="staticText-29"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Mata Uang        :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="764"
						y="85"
						width="161"
						height="20"
						key="textField-2"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcurrency_code}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="700"
						y="20"
						width="231"
						height="27"
						key="staticText-30"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="14" isBold="true"/>
					</textElement>
				<text><![CDATA[Cetakan Sementara]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="727"
						y="2"
						width="100"
						height="18"
						key="textField-3"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="12"/>
					</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="827"
						y="2"
						width="100"
						height="18"
						key="textField-4"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="12"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER} + ""]]></textFieldExpression>
				</textField>
				<subreport  isUsingCache="true">
					<reportElement
						x="0"
						y="130"
						width="932"
						height="39"
						key="subreport-1"
						stretchType="RelativeToTallestObject"/>
					<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_import.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="43"  isSplitAllowed="true" >
				<subreport  isUsingCache="true">
					<reportElement
						x="0"
						y="3"
						width="932"
						height="39"
						key="subreport-2"/>
					<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_det_import.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<lastPageFooter>
			<band height="223"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="2"
						width="932"
						height="0"
						key="line-3"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="3"
						y="5"
						width="112"
						height="20"
						key="staticText-14"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Catatan :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="120"
						y="5"
						width="380"
						height="74"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftremarks}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="552"
						y="4"
						width="224"
						height="20"
						key="staticText-15"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Pembayaran :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="619"
						y="25"
						width="158"
						height="20"
						key="staticText-17"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Total PO :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="599"
						y="46"
						width="178"
						height="20"
						key="staticText-18"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Pembulatan :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="786"
						y="26"
						width="145"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</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="787"
						y="46"
						width="144"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</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="787"
						y="66"
						width="144"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcamount}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="554"
						y="66"
						width="224"
						height="20"
						key="staticText-19"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Total Pembayaran :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="0"
						y="175"
						width="174"
						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="15"
						y="104"
						width="141"
						height="20"
						key="staticText-22"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[ Diterima Oleh :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="190"
						y="175"
						width="175"
						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="205"
						y="104"
						width="141"
						height="20"
						key="staticText-24"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[Diperiksa Oleh :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="382"
						y="175"
						width="164"
						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="391"
						y="104"
						width="141"
						height="20"
						key="staticText-26"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[Disetujui Oleh :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="EEE, d MMM yyyy HH:mm:ss" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="619"
						y="199"
						width="231"
						height="18"
						key="textField-1"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica-Oblique" size="14" 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="472"
						y="199"
						width="138"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica-Oblique" size="14" isBold="false" isItalic="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{username}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="787"
						y="6"
						width="144"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcsub_amount}]]></textFieldExpression>
				</textField>
			</band>
		</lastPageFooter>
		<summary>
			<band height="1"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
