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

	<field name="hdr_ftcompany_name" class="java.lang.String"/>
	<field name="hdr_ftcompany_add1" class="java.lang.String"/>
	<field name="ftcompany_add_vat1" class="java.lang.String"/>
	<field name="ftcompany_add_vat2" class="java.lang.String"/>
	<field name="hdr_ftcompany_ftcity" class="java.lang.String"/>
	<field name="hdr_ftcompany_ftstate" class="java.lang.String"/>
	<field name="hdr_ftcompany_fttelephone" class="java.lang.String"/>
	<field name="hdr_ftcompany_ftfax" class="java.lang.String"/>
	<field name="hdr_fttrans_no" class="java.lang.String"/>
	<field name="hdr_fdtrans_date" class="java.sql.Date"/>
	<field name="hdr_ftcustomer_code" class="java.lang.String"/>
	<field name="hdr_ftcustomer_name" class="java.lang.String"/>
	<field name="hdr_ftso_no" class="java.lang.String"/>
	<field name="hdr_fcamount" class="java.math.BigDecimal"/>
	<field name="hdr_ftremarks" class="java.lang.String"/>
	<field name="hdr_ftcurrency_code" class="java.lang.String"/>
	<field name="hdr_ftcurrency_name" class="java.lang.String"/>
	<field name="hdr_ftacc_no" class="java.lang.String"/>
	<field name="hdr_ftcoa_name" class="java.lang.String"/>

	<variable name="city" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$F{hdr_ftcompany_ftcity}+"-"+$F{hdr_ftcompany_ftstate}]]></variableExpression>
	</variable>
	<variable name="telp" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$F{hdr_ftcompany_fttelephone}+"-"+$F{hdr_ftcompany_ftfax}]]></variableExpression>
	</variable>
	<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(1) ]]></initialValueExpression>
	</variable>
	<variable name="say_amount" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA["Terbilang :"+$P{say}]]></variableExpression>
	</variable>
	<variable name="c_city" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[""+$F{hdr_ftcompany_ftcity}+" - "+$F{hdr_ftcompany_ftstate}+""]]></variableExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="2"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="105"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="42"
						y="0"
						width="347"
						height="24"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier-Bold" size="12" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="396"
						y="0"
						width="287"
						height="26"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier-Bold" size="14" isBold="true"/>
					</textElement>
				<text><![CDATA[INVOICE UANG MUKA]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="644"
						y="28"
						width="147"
						height="13"
						key="staticText-2"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[No Uang Muka]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="644"
						y="41"
						width="147"
						height="13"
						key="staticText-3"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[Tgl Uang Muka]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="797"
						y="28"
						width="160"
						height="13"
						key="textField"/>
					<box></box>
					<textElement verticalAlignment="Bottom">
						<font fontName="Arial" pdfFontName="Courier-Bold" size="11" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_fttrans_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="797"
						y="41"
						width="160"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{hdr_fdtrans_date}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="0"
						y="28"
						width="96"
						height="13"
						key="staticText-4"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[Customer]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="0"
						y="41"
						width="96"
						height="13"
						key="staticText-5"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[Alamat]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="102"
						y="28"
						width="479"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcustomer_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="102"
						y="41"
						width="479"
						height="26"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_add1}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="644"
						y="56"
						width="147"
						height="13"
						key="staticText-6"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[No. Reff]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="797"
						y="56"
						width="160"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftso_no}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="86"
						width="960"
						height="1"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="102"
						width="960"
						height="0"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="0"
						y="88"
						width="461"
						height="13"
						key="staticText-9"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[Keterangan]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="785"
						y="88"
						width="169"
						height="13"
						key="staticText-12"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Courier" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[JUMLAH]]></text>
				</staticText>
				<image  isLazy="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="5"
						y="0"
						width="25"
						height="24"
						key="image-1"/>
					<box></box>
					<graphicElement stretchType="NoStretch"/>
					<imageExpression class="java.lang.String"><![CDATA[$P{REPORT_DIR} + "ssu.jpg"]]></imageExpression>
				</image>
				<staticText>
					<reportElement
						x="96"
						y="28"
						width="6"
						height="13"
						key="staticText-34"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="96"
						y="41"
						width="6"
						height="13"
						key="staticText-35"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="791"
						y="41"
						width="6"
						height="13"
						key="staticText-36"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="791"
						y="28"
						width="6"
						height="13"
						key="staticText-37"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="791"
						y="56"
						width="6"
						height="13"
						key="staticText-38"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="791"
						y="43"
						width="6"
						height="13"
						key="staticText-39"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="644"
						y="70"
						width="147"
						height="13"
						key="staticText-41"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[Mata Uang]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="797"
						y="70"
						width="160"
						height="13"
						key="textField-11"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcurrency_code}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="791"
						y="70"
						width="6"
						height="13"
						key="staticText-42"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="466"
						y="88"
						width="316"
						height="13"
						key="staticText-43"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[No Perkiraan]]></text>
				</staticText>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="13"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="785"
						y="0"
						width="171"
						height="13"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcamount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="461"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier-Bold" size="11" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftremarks}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="466"
						y="0"
						width="108"
						height="13"
						key="textField-12"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier-Bold" size="11" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftacc_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="576"
						y="0"
						width="206"
						height="13"
						key="textField-13"/>
					<box></box>
					<textElement>
						<font fontName="Arial" pdfFontName="Courier-Bold" size="11" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcoa_name}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="130"  isSplitAllowed="true" >
				<line direction="BottomUp">
					<reportElement
						x="0"
						y="2"
						width="960"
						height="0"
						key="line-4"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<textField isStretchWithOverflow="false" pattern="EEE, d MMM yyyy HH:mm:ss" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="111"
						width="279"
						height="13"
						key="textField-9"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier-Oblique" isItalic="true" isUnderline="false"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="698"
						y="60"
						width="202"
						height="13"
						key="staticText-22"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier" size="11" isBold="false"/>
					</textElement>
				<text><![CDATA[Hormat Kami,]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="11"
						width="634"
						height="42"
						key="textField"/>
					<box>					<pen lineWidth="0.0"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
</box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Courier" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$V{say_amount} + " " + $F{hdr_ftcurrency_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="699"
						y="111"
						width="202"
						height="13"
						key="staticText-25"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Courier-Bold" size="11" isBold="false"/>
					</textElement>
				<text><![CDATA[(. . . . . . . . . . . . . . . . .)]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="786"
						y="11"
						width="171"
						height="13"
						key="textField-10"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Courier" size="11" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcamount}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="644"
						y="11"
						width="138"
						height="13"
						key="staticText-40"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Courier" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[TOTAL :]]></text>
				</staticText>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
