<?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="cr08_debit_memo_um"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="935"
		 pageHeight="566"
		 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.*" />

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

	<field name="hdr_ftcompany_name" class="java.lang.String"/>
	<field name="hdr_ftdm_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_fttrans_type" class="java.lang.String"/>
	<field name="hdr_fcinvoice_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fcoutstanding_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fcdebit_amount" class="java.math.BigDecimal"/>
	<field name="hdr_ftnotes" class="java.lang.String"/>
	<field name="hdr_fttrans_status_name" class="java.lang.String"/>
	<field name="hdr_ftcurrency_code" class="java.lang.String"/>
	<field name="hdr_fcrate" class="java.math.BigDecimal"/>
	<field name="det_ftcv_no" class="java.lang.String"/>
	<field name="det_ftpo_no" class="java.lang.String"/>
	<field name="det_ftdue_date" class="java.sql.Date"/>
	<field name="det_ftdescription" class="java.lang.String"/>
	<field name="det_fcinvoice_amount" class="java.math.BigDecimal"/>
	<field name="det_fcoutstanding_amount" class="java.math.BigDecimal"/>
	<field name="det_fcoutstanding_debit_memo" class="java.math.BigDecimal"/>
	<field name="det_fcinvoice_amountUSD" class="java.math.BigDecimal"/>
	<field name="det_fcoutstanding_amountUSD" class="java.math.BigDecimal"/>
	<field name="det_fcoutstanding_debit_memoUSD" class="java.math.BigDecimal"/>
	<field name="det_fcdebit_amount" 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_ftdm_no}]]></groupExpression>
			<groupHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupHeader>
			<groupFooter>
			<band height="5"  isSplitAllowed="true" >
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="178"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="327"
						y="30"
						width="230"
						height="23"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="17" isBold="true"/>
					</textElement>
				<text><![CDATA[DEBIT MEMO]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="147"
						width="929"
						height="0"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="8"
						y="52"
						width="122"
						height="20"
						key="staticText-2"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[No. Transaksi :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="8"
						y="72"
						width="122"
						height="20"
						key="staticText-3"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Supplier :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="592"
						y="53"
						width="152"
						height="20"
						key="staticText-4"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Tgl. Transaksi :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="592"
						y="73"
						width="152"
						height="20"
						key="staticText-5"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Jenis Transaksi :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="750"
						y="73"
						width="150"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_fttrans_type}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="750"
						y="53"
						width="149"
						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>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="175"
						width="929"
						height="0"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="0"
						y="152"
						width="27"
						height="20"
						key="staticText-6"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="36"
						y="154"
						width="168"
						height="20"
						key="staticText-9"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Keterangan]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="327"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="17" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="135"
						y="53"
						width="140"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftdm_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="135"
						y="73"
						width="140"
						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="592"
						y="93"
						width="152"
						height="20"
						key="staticText-17"/>
					<box></box>
					<textElement textAlignment="Right">
						<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="750"
						y="93"
						width="150"
						height="20"
						key="textField-1"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcurrency_code}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="592"
						y="113"
						width="152"
						height="20"
						key="staticText-18"/>
					<box></box>
					<textElement textAlignment="Right">
						<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="750"
						y="113"
						width="100"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcrate}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="768"
						y="152"
						width="150"
						height="20"
						key="textField-2"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["Jumlah "+$F{hdr_ftcurrency_code}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="687"
						y="5"
						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="787"
						y="5"
						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>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="26"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="5"
						width="27"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="36"
						y="5"
						width="368"
						height="20"
						key="textField"
						stretchType="RelativeToBandHeight"
						isPrintWhenDetailOverflows="true"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftdescription}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="711"
						y="0"
						width="210"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcdebit_amount}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<lastPageFooter>
			<band height="76"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="6"
						width="929"
						height="0"
						key="line-3"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="0"
						y="17"
						width="130"
						height="20"
						key="staticText-15"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Catatan :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="135"
						y="17"
						width="370"
						height="53"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftnotes}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="563"
						y="12"
						width="226"
						height="20"
						key="staticText-16"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<text><![CDATA[Total Debit Memo :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="795"
						y="12"
						width="131"
						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>
			</band>
		</lastPageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
