<?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="cr11_arsub"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="935"
		 pageHeight="70"
		 columnWidth="935"
		 columnSpacing="0"
		 leftMargin="0"
		 rightMargin="0"
		 topMargin="5"
		 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 a.*,b.ftdo_no as ftdo_nox
from txar_det a ,txsales_invoice_hdr b 
where a.ftsales_invoice_no=b.ftsales_invoice_no
and  ftar_no=$P{trans_no}]]></queryString>

	<field name="fnid" class="java.lang.Integer"/>
	<field name="ftbranch_code" class="java.lang.String"/>
	<field name="ftar_no" class="java.lang.String"/>
	<field name="fnindex" class="java.lang.Integer"/>
	<field name="ftsales_invoice_no" class="java.lang.String"/>
	<field name="fdinvoice_date" class="java.sql.Date"/>
	<field name="ftso_no" class="java.lang.String"/>
	<field name="ftdo_no" class="java.lang.String"/>
	<field name="fdtrans_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="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="ftdo_nox" 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{ftar_no}]]></groupExpression>
			<groupHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupHeader>
			<groupFooter>
			<band height="1"  isSplitAllowed="true" >
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="34"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="3"
						width="930"
						height="0"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="3"
						y="8"
						width="22"
						height="20"
						key="staticText-1"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="32"
						y="9"
						width="163"
						height="20"
						key="staticText-2"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[No. Invoice]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="760"
						y="8"
						width="170"
						height="20"
						key="staticText-6"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[Jml. Pembayaran]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="30"
						width="930"
						height="2"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="23"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="760"
						y="2"
						width="169"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{fcpayment_amount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="3"
						y="3"
						width="24"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="32"
						y="3"
						width="163"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsales_invoice_no}]]></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>
