<?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="crprint05_sales_return"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="612"
		 pageHeight="390"
		 columnWidth="612"
		 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"/>
	<parameter name="say" isForPrompting="false" class="java.lang.String"/>
	<queryString><![CDATA[call spprint_sales_return($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="ftsales_return_no" class="java.lang.String"/>
	<field name="fdtrans_date" class="java.sql.Date"/>
	<field name="ftsales_invoice_no" class="java.lang.String"/>
	<field name="subtotal" class="java.math.BigDecimal"/>
	<field name="diskon_hdr" class="java.math.BigDecimal"/>
	<field name="pajak_hdr" class="java.math.BigDecimal"/>
	<field name="total_hdr" class="java.math.BigDecimal"/>
	<field name="fcother_cost" class="java.math.BigDecimal"/>
	<field name="ftsales_code" class="java.lang.String"/>
	<field name="ftnotes" class="java.lang.String"/>
	<field name="ftlocation_code" class="java.lang.String"/>
	<field name="ftitem_code" class="java.lang.String"/>
	<field name="fnqty" class="java.lang.Double"/>
	<field name="harga_det" class="java.math.BigDecimal"/>
	<field name="jumlah_det" class="java.math.BigDecimal"/>
	<field name="ftuom_code" class="java.lang.String"/>
	<field name="ftitem_name" class="java.lang.String"/>
	<field name="ftcustomer_name" class="java.lang.String"/>
	<field name="alamat" class="java.lang.String"/>
	<field name="c_city" class="java.lang.String"/>

	<variable name="sub_total" class="java.math.BigDecimal" resetType="Page" calculation="Sum">
		<variableExpression><![CDATA[$F{jumlah_det}]]></variableExpression>
	</variable>
	<variable name="urut" class="java.lang.Integer" resetType="Group" resetGroup="g_sales_return_no" calculation="Count">
		<variableExpression><![CDATA[new java.lang.Integer(0) ]]></variableExpression>
		<initialValueExpression><![CDATA[new java.lang.Integer(0) ]]></initialValueExpression>
	</variable>

		<group  name="g_sales_return_no" >
			<groupExpression><![CDATA[$F{ftsales_return_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="110"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="15"
						y="8"
						width="485"
						height="23"
						key="staticText-78"/>
					<box></box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="14" isBold="true"/>
					</textElement>
				<text><![CDATA[SALES RETURN]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="15"
						y="36"
						width="60"
						height="15"
						key="staticText-79"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Kepada :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="75"
						y="36"
						width="180"
						height="15"
						key="textField-47"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftcustomer_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="75"
						y="51"
						width="180"
						height="24"
						key="textField-48"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{alamat}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="290"
						y="36"
						width="100"
						height="13"
						key="staticText-80"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[No. Retur]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="290"
						y="49"
						width="100"
						height="13"
						key="staticText-81"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Tanggal]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="290"
						y="75"
						width="100"
						height="13"
						key="staticText-82"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Salesman]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="400"
						y="36"
						width="100"
						height="13"
						key="textField-49"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsales_return_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="400"
						y="49"
						width="100"
						height="13"
						key="textField-50"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{fdtrans_date}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="400"
						y="75"
						width="100"
						height="13"
						key="textField-51"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsales_code}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="390"
						y="36"
						width="10"
						height="13"
						key="staticText-83"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="390"
						y="49"
						width="10"
						height="13"
						key="staticText-84"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="390"
						y="75"
						width="10"
						height="13"
						key="staticText-85"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="290"
						y="62"
						width="100"
						height="13"
						key="staticText-86"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[No. Faktur]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="400"
						y="62"
						width="100"
						height="13"
						key="textField-52"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsales_invoice_no}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="390"
						y="62"
						width="10"
						height="13"
						key="staticText-87"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="107"
						width="485"
						height="0"
						key="line-11"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="15"
						y="93"
						width="20"
						height="13"
						key="staticText-88"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[No.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="100"
						y="93"
						width="165"
						height="13"
						key="staticText-89"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Nama Barang]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="305"
						y="93"
						width="40"
						height="13"
						key="staticText-90"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[QTY]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="345"
						y="93"
						width="65"
						height="13"
						key="staticText-91"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Harga]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="410"
						y="93"
						width="90"
						height="13"
						key="staticText-92"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Jumlah]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="91"
						width="485"
						height="0"
						key="line-12"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="35"
						y="93"
						width="65"
						height="13"
						key="staticText-93"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[Kode]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="265"
						y="93"
						width="40"
						height="13"
						key="staticText-98"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[LOC]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="15"
						y="75"
						width="50"
						height="13"
						key="staticText-99"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Halaman]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="65"
						y="75"
						width="10"
						height="13"
						key="staticText-100"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="75"
						y="75"
						width="100"
						height="13"
						key="textField-63"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="15"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="15"
						y="1"
						width="20"
						height="13"
						key="textField-53"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="100"
						y="1"
						width="165"
						height="13"
						key="textField-54"
						stretchType="RelativeToTallestObject"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftitem_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="305"
						y="1"
						width="40"
						height="13"
						key="textField-55"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{fnqty}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="345"
						y="1"
						width="65"
						height="13"
						key="textField-56"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{harga_det}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="410"
						y="1"
						width="90"
						height="13"
						key="textField-57"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{jumlah_det}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="35"
						y="1"
						width="65"
						height="13"
						key="textField-58"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftitem_code}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="265"
						y="1"
						width="40"
						height="13"
						key="textField-62"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftlocation_code}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="80"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="EEE, d MMM yyyy HH:mm:ss" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="381"
						y="54"
						width="119"
						height="13"
						key="textField-59"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" pdfFontName="Helvetica-Oblique" size="8" isItalic="true" isUnderline="false"/>
					</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="15"
						y="32"
						width="325"
						height="35"
						key="textField-60"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftnotes}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="15"
						y="14"
						width="134"
						height="13"
						key="staticText-96"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Keterangan  :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="363"
						y="12"
						width="47"
						height="13"
						key="staticText-97"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Total :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="410"
						y="12"
						width="89"
						height="13"
						key="textField-61"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{total_hdr}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="3"
						width="485"
						height="0"
						key="line-13"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
