<?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="crprint06_tanda_terima"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="935"
		 pageHeight="623"
		 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">
		<defaultValueExpression ><![CDATA[$P{trans_no}]]></defaultValueExpression>
	</parameter>
	<parameter name="say" isForPrompting="false" class="java.lang.String"/>
	<parameter name="username" isForPrompting="true" class="java.lang.String"/>
	<queryString><![CDATA[call sppuprint05_tanda_terima($P{trans_no})]]></queryString>

	<field name="hdr_ftcompany_name" class="java.lang.String"/>
	<field name="hdr_ftcompany_add_vat2" class="java.lang.String"/>
	<field name="hdr_ftcompany_add_vat3" class="java.lang.String"/>
	<field name="hdr_ftiso" class="java.lang.String"/>
	<field name="hdr_fttanda_terima_no" class="java.lang.String"/>
	<field name="hrd_fdtrans_date" class="java.sql.Date"/>
	<field name="hdr_ftsupplier_code" class="java.lang.String"/>
	<field name="hdr_ftsupplier_name" class="java.lang.String"/>
	<field name="hdr_fcamount" class="java.math.BigDecimal"/>
	<field name="hdr_fcpayment_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fcoutstanding_amount" class="java.math.BigDecimal"/>
	<field name="hdr_ftnotes" class="java.lang.String"/>
	<field name="det_fnindex" class="java.lang.Integer"/>
	<field name="det_ftstock_in_no" class="java.lang.String"/>
	<field name="det_ftpurchase_invoice_no" class="java.lang.String"/>
	<field name="det_ftpo_no" class="java.lang.String"/>
	<field name="det_fcamount" class="java.math.BigDecimal"/>

	<variable name="urut" class="java.lang.Integer" resetType="None" calculation="Count">
		<variableExpression><![CDATA[new java.lang.Integer(0)]]></variableExpression>
		<initialValueExpression><![CDATA[new java.lang.Integer(1) ]]></initialValueExpression>
	</variable>
	<variable name="urut2" class="java.lang.Integer" resetType="None" calculation="Count">
		<variableExpression><![CDATA[$V{urut2}]]></variableExpression>
	</variable>
	<variable name="urut3" class="java.lang.Integer" resetType="None" calculation="Nothing">
		<variableExpression><![CDATA[new java.lang.Integer(  ($V{urut}.intValue()) +($V{urut2}.intValue()) )]]></variableExpression>
	</variable>
	<variable name="jumlah" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{det_fcamount}]]></variableExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="121"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="455"
						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>
				<staticText>
					<reportElement
						x="234"
						y="33"
						width="177"
						height="19"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="14" isBold="true" isUnderline="true"/>
					</textElement>
				<text><![CDATA[TANDA TERIMA]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="5"
						y="70"
						width="160"
						height="20"
						key="staticText-41"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[No. Tanda Terima :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="5"
						y="90"
						width="160"
						height="20"
						key="staticText-42"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[Tgl. Tanda Terima :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="350"
						y="70"
						width="160"
						height="20"
						key="staticText-43"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[Kode Supplier :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="350"
						y="90"
						width="160"
						height="20"
						key="staticText-44"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[Nama Supplier :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="172"
						y="90"
						width="113"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{hrd_fdtrans_date}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="517"
						y="70"
						width="182"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftsupplier_code}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="517"
						y="90"
						width="295"
						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>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="172"
						y="70"
						width="166"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_fttanda_terima_no}]]></textFieldExpression>
				</textField>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="33"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="5"
						y="6"
						width="32"
						height="20"
						key="staticText-4"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="568"
						y="7"
						width="175"
						height="20"
						key="staticText-6"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[Total]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="5"
						width="764"
						height="0"
						key="line-3"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="30"
						width="764"
						height="0"
						key="line-9"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="46"
						y="7"
						width="175"
						height="20"
						key="staticText-24"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[No. PI]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="233"
						y="6"
						width="180"
						height="20"
						key="staticText-45"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[No. PO]]></text>
				</staticText>
			</band>
		</columnHeader>
		<detail>
			<band height="22"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="568"
						y="0"
						width="176"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcamount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="5"
						y="0"
						width="27"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut3}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="46"
						y="0"
						width="175"
						height="20"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftpurchase_invoice_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="233"
						y="0"
						width="180"
						height="20"
						key="textField-2"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftpo_no}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<lastPageFooter>
			<band height="87"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="4"
						width="764"
						height="0"
						key="line-11"/>
					<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="725"
						y="64"
						width="205"
						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="613"
						y="64"
						width="109"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="14"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{username}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="371"
						y="10"
						width="192"
						height="20"
						key="staticText-46"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" pdfFontName="Helvetica" size="17" isBold="false"/>
					</textElement>
				<text><![CDATA[Total :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="567"
						y="10"
						width="177"
						height="25"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="17"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcamount}]]></textFieldExpression>
				</textField>
			</band>
		</lastPageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
