<?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_apsub_portrait"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="570"
		 pageHeight="60"
		 columnWidth="570"
		 columnSpacing="0"
		 leftMargin="0"
		 rightMargin="0"
		 topMargin="15"
		 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[select distinct a.* 
from 
txrecap_bank_voucher_det a
where a.ftcvs_no=$P{trans_no}]]></queryString>

	<field name="fnid" class="java.lang.Integer"/>
	<field name="ftbranch_code" class="java.lang.String"/>
	<field name="ftcvs_no" class="java.lang.String"/>
	<field name="fnindex" class="java.lang.Integer"/>
	<field name="ftpp_no" class="java.lang.String"/>
	<field name="ftpo_no" class="java.lang.String"/>
	<field name="ftcv_no" class="java.lang.String"/>
	<field name="ftreceipt_no" class="java.lang.String"/>
	<field name="ftdue_date" class="java.sql.Date"/>
	<field name="fcamount" class="java.math.BigDecimal"/>
	<field name="fcoutstanding_amount" class="java.math.BigDecimal"/>
	<field name="fcpayment_amount" class="java.math.BigDecimal"/>
	<field name="fcamountUSD" class="java.math.BigDecimal"/>
	<field name="fcoutstanding_amountUSD" class="java.math.BigDecimal"/>
	<field name="fcpayment_amountUSD" class="java.math.BigDecimal"/>
	<field name="ftcreated_user" class="java.lang.String"/>
	<field name="fdcreated_date" class="java.sql.Timestamp"/>
	<field name="ftmodified_user" class="java.lang.String"/>
	<field name="fdmodified_date" class="java.sql.Timestamp"/>
	<field name="ftpi_no" class="java.lang.String"/>
	<field name="ftcurrency_code" class="java.lang.String"/>
	<field name="fcadjustment" 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>
	<variable name="jml_usd" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{fcpayment_amountUSD}]]></variableExpression>
	</variable>
	<variable name="jml_idr" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{fcpayment_amount}]]></variableExpression>
	</variable>

		<group  name="g_trans_no" >
			<groupExpression><![CDATA[$F{ftcvs_no}]]></groupExpression>
			<groupHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupHeader>
			<groupFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageHeader>
		<columnHeader>
			<band height="15"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="0"
						y="0"
						width="25"
						height="15"
						key="staticText-15"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
					<textElement verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="25"
						y="0"
						width="100"
						height="15"
						key="staticText-16"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
					<textElement verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[No. PO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="405"
						y="0"
						width="165"
						height="15"
						key="staticText-17"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Jml. Pembayaran]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="305"
						y="0"
						width="100"
						height="15"
						key="staticText-18"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Total Invoice]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="225"
						y="0"
						width="80"
						height="15"
						key="staticText-19"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[Tgl. Invoice]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="125"
						y="0"
						width="100"
						height="15"
						key="staticText-21"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="0.5" lineStyle="Solid"/>
</box>
					<textElement verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[No. Invoice]]></text>
				</staticText>
			</band>
		</columnHeader>
		<detail>
			<band height="18"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="25"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="225"
						y="0"
						width="80"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{ftdue_date}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="405"
						y="0"
						width="165"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{fcpayment_amountUSD}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="25"
						y="0"
						width="100"
						height="18"
						key="textField"
						stretchType="RelativeToBandHeight"/>
					<box></box>
					<textElement markup="html">
						<font fontName="Arial" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftpo_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="125"
						y="0"
						width="100"
						height="18"
						key="textField-1"
						stretchType="RelativeToBandHeight"/>
					<box></box>
					<textElement markup="html">
						<font fontName="Arial" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftpi_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="305"
						y="0"
						width="100"
						height="18"
						key="textField-5"/>
					<box></box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="Arial" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{fcamountUSD}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
