<?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="crprint02_delivery_order"
		 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="print_count" isForPrompting="true" class="java.lang.String"/>
	<queryString><![CDATA[call spsprint03_delivery_order($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="ftdo_no" class="java.lang.String"/>
	<field name="fdtrans_date" class="java.sql.Date"/>
	<field name="ftso_no" class="java.lang.String"/>
	<field name="ftsales_code" class="java.lang.String"/>
	<field name="ftnotes" class="java.lang.String"/>
	<field name="ftitem_code" class="java.lang.String"/>
	<field name="fnqty" class="java.lang.Double"/>
	<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="urut" class="java.lang.Integer" resetType="Group" resetGroup="g_so_no" calculation="Count">
		<variableExpression><![CDATA[new java.lang.Integer(0) ]]></variableExpression>
		<initialValueExpression><![CDATA[new java.lang.Integer(0) ]]></initialValueExpression>
	</variable>

		<group  name="g_so_no" >
			<groupExpression><![CDATA[$F{ftso_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="130"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="15"
						y="8"
						width="485"
						height="23"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="14" isBold="true"/>
					</textElement>
				<text><![CDATA[SURAT JALAN]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="127"
						width="485"
						height="0"
						key="line-2"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="15"
						y="38"
						width="60"
						height="13"
						key="staticText-36"/>
					<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="38"
						width="180"
						height="13"
						key="textField-22"/>
					<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="39"
						key="textField-23"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{alamat}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="289"
						y="38"
						width="100"
						height="13"
						key="staticText-40"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[No. DO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="289"
						y="51"
						width="100"
						height="13"
						key="staticText-41"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Tanggal]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="289"
						y="77"
						width="100"
						height="13"
						key="staticText-42"/>
					<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="399"
						y="38"
						width="100"
						height="13"
						key="textField-24"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftdo_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="399"
						y="51"
						width="100"
						height="13"
						key="textField-25"/>
					<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="399"
						y="77"
						width="100"
						height="13"
						key="textField-26"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftsales_code}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="389"
						y="38"
						width="10"
						height="13"
						key="staticText-43"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="389"
						y="51"
						width="10"
						height="13"
						key="staticText-44"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="389"
						y="77"
						width="10"
						height="13"
						key="staticText-45"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="15"
						y="113"
						width="20"
						height="13"
						key="staticText-46"/>
					<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="113"
						width="360"
						height="13"
						key="staticText-48"/>
					<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="460"
						y="113"
						width="40"
						height="13"
						key="staticText-49"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false"/>
					</textElement>
				<text><![CDATA[QTY]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="111"
						width="485"
						height="0"
						key="line-8"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="35"
						y="113"
						width="65"
						height="13"
						key="staticText-66"/>
					<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="289"
						y="64"
						width="100"
						height="13"
						key="staticText-67"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[No. Order]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="399"
						y="64"
						width="100"
						height="13"
						key="textField-44"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftso_no}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="389"
						y="64"
						width="10"
						height="13"
						key="staticText-68"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="289"
						y="90"
						width="100"
						height="13"
						key="staticText-72"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[Halaman]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="399"
						y="90"
						width="100"
						height="13"
						key="textField-45"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="389"
						y="90"
						width="10"
						height="13"
						key="staticText-73"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Top">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<text><![CDATA[:]]></text>
				</staticText>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="13"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="15"
						y="0"
						width="20"
						height="13"
						key="textField-27"/>
					<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="0"
						width="360"
						height="13"
						key="textField-29"
						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="460"
						y="0"
						width="40"
						height="13"
						key="textField-30"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{fnqty}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="35"
						y="0"
						width="65"
						height="13"
						key="textField-43"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftitem_code}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="90"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="171"
						y="8"
						width="80"
						height="13"
						key="staticText-24"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Dikirim Oleh]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="EEE, d MMM yyyy HH:mm:ss" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="381"
						y="72"
						width="119"
						height="13"
						key="textField-6"/>
					<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>
				<staticText>
					<reportElement
						x="171"
						y="50"
						width="80"
						height="13"
						key="staticText-29"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[___________]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="15"
						y="28"
						width="134"
						height="35"
						key="textField-34"/>
					<box></box>
					<textElement>
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftnotes}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="15"
						y="10"
						width="134"
						height="13"
						key="staticText-53"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Keterangan  :]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="15"
						y="0"
						width="485"
						height="2"
						key="line-9"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="270"
						y="8"
						width="80"
						height="13"
						key="staticText-69"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Diterima Oleh]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="270"
						y="50"
						width="80"
						height="13"
						key="staticText-70"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Verdana" pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[___________]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="15"
						y="72"
						width="335"
						height="13"
						key="staticText-71"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Verdana" pdfFontName="Helvetica" size="10" isBold="false"/>
					</textElement>
				<text><![CDATA[Barang yang sudah dibeli tidak dapat dikembalikan]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="470"
						y="50"
						width="30"
						height="13"
						key="textField-46"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Verdana" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{print_count}]]></textFieldExpression>
				</textField>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
