<?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="crprint03_invoice_vat_standar"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="963"
		 pageHeight="751"
		 columnWidth="963"
		 columnSpacing="0"
		 leftMargin="0"
		 rightMargin="0"
		 topMargin="0"
		 bottomMargin="0"
		 whenNoDataType="NoPages"
		 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="true" class="java.lang.String">
		<defaultValueExpression ><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="address" isForPrompting="true" class="java.lang.String"/>
	<parameter name="revisi_ke" isForPrompting="true" class="java.lang.String"/>
	<queryString><![CDATA[call spsprint01_invoice_standar($P{trans_no})]]></queryString>

	<field name="hdr_ftcompany_name" class="java.lang.String"/>
	<field name="hdr_ftcompany_add1" 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_add_compl" class="java.lang.String"/>
	<field name="hdr_ftcompany_fttelephone" class="java.lang.String"/>
	<field name="hdr_ftcompany_ftfax" class="java.lang.String"/>
	<field name="hdr_ftcompany_ftnpwp" class="java.lang.String"/>
	<field name="hdr_ftcompany_fdnpwp_date" class="java.sql.Date"/>
	<field name="hdr_ftsales_invoice_no" class="java.lang.String"/>
	<field name="hdr_fdtrans_date" class="java.sql.Date"/>
	<field name="hdr_ftcustomer_code" class="java.lang.String"/>
	<field name="hdr_ftcustomer_name" class="java.lang.String"/>
	<field name="hdr_ftship_address" class="java.lang.String"/>
	<field name="hdr_ftpo_no" class="java.lang.String"/>
	<field name="hdr_ftdo_no" class="java.lang.String"/>
	<field name="hdr_fcsub_amount" class="java.math.BigDecimal"/>
	<field name="hdr_fcdiscount" class="java.math.BigDecimal"/>
	<field name="hdr_fcvat" class="java.math.BigDecimal"/>
	<field name="hdr_fcamount" class="java.math.BigDecimal"/>
	<field name="hdr_fcother_cost" class="java.math.BigDecimal"/>
	<field name="hdr_ftvat_no" class="java.lang.String"/>
	<field name="hdr_ftnpwp" class="java.lang.String"/>
	<field name="hdr_ftnppkp" class="java.lang.String"/>
	<field name="det_ftitem_code" class="java.lang.String"/>
	<field name="det_ftitem_name" class="java.lang.String"/>
	<field name="det_ftprint_name" class="java.lang.String"/>
	<field name="det_fnqty" class="java.lang.Double"/>
	<field name="det_fcprice" class="java.math.BigDecimal"/>
	<field name="det_ffdiskon" class="java.lang.Double"/>
	<field name="det_fcdiskon" class="java.math.BigDecimal"/>
	<field name="det_fcamount" class="java.math.BigDecimal"/>
	<field name="det_ftuom_code" class="java.lang.String"/>
	<field name="c_city" class="java.lang.String"/>
	<field name="fdvat_date" class="java.sql.Date"/>

	<variable name="city" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$F{hdr_ftcompany_ftcity}+"-"+$F{hdr_ftcompany_ftstate}]]></variableExpression>
	</variable>
	<variable name="telp" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$F{hdr_ftcompany_fttelephone}+"-"+$F{hdr_ftcompany_ftfax}]]></variableExpression>
	</variable>
	<variable name="urut" class="java.lang.Integer" resetType="Group" resetGroup="g_hdr_ftsales_inoice_no" calculation="Count">
		<variableExpression><![CDATA[new java.lang.Integer(0) ]]></variableExpression>
		<initialValueExpression><![CDATA[new java.lang.Integer(1) ]]></initialValueExpression>
	</variable>
	<variable name="dpp" class="java.math.BigDecimal" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$F{hdr_fcsub_amount}.subtract( $F{hdr_fcdiscount})]]></variableExpression>
	</variable>
	<variable name="say_amount" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$P{say}]]></variableExpression>
	</variable>
	<variable name="c_city" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[""+$F{hdr_ftcompany_ftcity}+" - "+$F{hdr_ftcompany_ftstate}+""]]></variableExpression>
	</variable>

		<group  name="g_hdr_ftsales_inoice_no" >
			<groupExpression><![CDATA[$F{hdr_ftsales_invoice_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="2"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="366"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="302"
						y="128"
						width="240"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftvat_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="262"
						y="142"
						width="631"
						height="13"
						key="textField">
							<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="262"
						y="162"
						width="631"
						height="13"
						key="textField">
							<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_add_compl}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="262"
						y="214"
						width="631"
						height="13"
						key="textField">
							<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{hdr_ftcompany_fdnpwp_date}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="262"
						y="187"
						width="631"
						height="15"
						key="textField">
							<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcompany_ftnpwp}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="295"
						y="245"
						width="631"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftcustomer_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="295"
						y="282"
						width="215"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftnpwp}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="639"
						y="288"
						width="216"
						height="13"
						key="textField">
							<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftnppkp}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="295"
						y="263"
						width="631"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{address}]]></textFieldExpression>
				</textField>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="14"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="20"
						y="0"
						width="24"
						height="13"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{urut}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="449"
						y="1"
						width="23"
						height="13"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{det_fnqty}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="487"
						y="1"
						width="63"
						height="13"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcprice}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="1"
						width="138"
						height="13"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcamount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="71"
						y="1"
						width="368"
						height="13"
						key="textField"
						stretchType="RelativeToBandHeight"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{det_ftprint_name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="473"
						y="1"
						width="13"
						height="13"
						key="staticText-2"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="8"/>
					</textElement>
				<text><![CDATA[@]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="439"
						y="0"
						width="9"
						height="14"
						key="staticText-5"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="8"/>
					</textElement>
				<text><![CDATA[(]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="551"
						y="1"
						width="12"
						height="13"
						key="staticText-6"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="8"/>
					</textElement>
				<text><![CDATA[)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="563"
						y="0"
						width="9"
						height="14"
						key="staticText-7"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="8"/>
					</textElement>
				<text><![CDATA[(]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="573"
						y="1"
						width="23"
						height="13"
						key="textField-3"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$F{det_ffdiskon}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="611"
						y="1"
						width="63"
						height="13"
						key="textField-4"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{det_fcdiskon}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="675"
						y="1"
						width="12"
						height="13"
						key="staticText-8"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="8"/>
					</textElement>
				<text><![CDATA[)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="596"
						y="1"
						width="13"
						height="13"
						key="staticText-9"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="10"/>
					</textElement>
				<text><![CDATA[%]]></text>
				</staticText>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<lastPageFooter>
			<band height="221"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="200"
						y="40"
						width="158"
						height="13"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{hdr_ftsales_invoice_no}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="86"
						width="138"
						height="14"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcsub_amount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="103"
						width="138"
						height="14"
						key="textField"/>
					<box>					<pen lineWidth="0.0"/>
					<topPen lineWidth="0.0" lineColor="#000000"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
</box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcdiscount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="153"
						width="138"
						height="13"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcvat}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="36"
						y="39"
						width="157"
						height="14"
						key="staticText-3"/>
					<box></box>
					<textElement textAlignment="Right">
						<font/>
					</textElement>
				<text><![CDATA[INVOICE NO]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="668"
						y="175"
						width="144"
						height="13"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{fdvat_date}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="105"
						y="86"
						width="315"
						height="14"
						key="staticText-4"/>
					<box></box>
					<textElement textAlignment="Left">
						<font/>
					</textElement>
				<text><![CDATA[XXXXXXXXXXXXXXXXXXXXXXXXXXXX]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="790"
						y="136"
						width="138"
						height="14"
						key="textField-1"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{hdr_fcsub_amount}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="10"
						y="203"
						width="212"
						height="18"
						key="textField-2"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{revisi_ke}]]></textFieldExpression>
				</textField>
			</band>
		</lastPageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
