<?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="report08_laba_rugi_perincian"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="755"
		 pageHeight="1275"
		 columnWidth="755"
		 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="date_from" isForPrompting="true" class="java.util.Date"/>
	<parameter name="date_end" isForPrompting="true" class="java.util.Date"/>
	<parameter name="username" isForPrompting="true" class="java.lang.String"/>
	<queryString><![CDATA[CALL spaccreport08_laba_rugi_perincian($P{date_from},$P{date_end})]]></queryString>

	<field name="ftcoa_code" class="java.lang.String"/>
	<field name="ftcoa_code_group" class="java.lang.String"/>
	<field name="ftcoa_subgroup_code" class="java.lang.String"/>
	<field name="ftcoa_subgroup_name" class="java.lang.String"/>
	<field name="ftgroup_ttl" class="java.lang.String"/>
	<field name="ftcoa_name" class="java.lang.String"/>
	<field name="ftdescription" class="java.lang.String"/>
	<field name="fnindex" class="java.lang.Integer"/>
	<field name="ftgroup" class="java.lang.String"/>
	<field name="fcsaldo_display" class="java.math.BigDecimal"/>
	<field name="fcsaldo_terakhir_display" class="java.math.BigDecimal"/>
	<field name="fcsaldo_sekarang_display" class="java.math.BigDecimal"/>
	<field name="fcsaldo" class="java.math.BigDecimal"/>
	<field name="fcsaldo_terakhir" class="java.math.BigDecimal"/>
	<field name="fcsaldo_sekarang" class="java.math.BigDecimal"/>

	<variable name="amount_fcsaldo" class="java.math.BigDecimal" resetType="Group" resetGroup="index" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo}]]></variableExpression>
	</variable>
	<variable name="amount_fcsaldo_real" class="java.math.BigDecimal" resetType="Group" resetGroup="index" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo}]]></variableExpression>
	</variable>
	<variable name="grand_total" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo}]]></variableExpression>
	</variable>
	<variable name="amount_fcsaldo_terakhir" class="java.math.BigDecimal" resetType="Group" resetGroup="index" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo_terakhir}]]></variableExpression>
	</variable>
	<variable name="amount_fcsaldo_real_terakhir" class="java.math.BigDecimal" resetType="Group" resetGroup="index" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo_terakhir}]]></variableExpression>
	</variable>
	<variable name="grand_total_terakhir" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo_terakhir}]]></variableExpression>
	</variable>
	<variable name="amount_fcsaldo_sekarang" class="java.math.BigDecimal" resetType="Group" resetGroup="index" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo}]]></variableExpression>
	</variable>
	<variable name="amount_fcsaldo_real_sekarang" class="java.math.BigDecimal" resetType="Group" resetGroup="index" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo_sekarang}]]></variableExpression>
	</variable>
	<variable name="grand_total_sekarang" class="java.math.BigDecimal" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{fcsaldo_sekarang}]]></variableExpression>
	</variable>

		<group  name="group_ttl" >
			<groupExpression><![CDATA[$F{ftgroup_ttl}]]></groupExpression>
			<groupHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupHeader>
			<groupFooter>
			<band height="20"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="455"
						height="20"
						key="textField"/>
					<box>					<pen lineWidth="0.0" lineStyle="Solid"/>
					<topPen lineWidth="1.0" lineStyle="Double"/>
					<leftPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="1.0" lineStyle="Double"/>
					<rightPen lineWidth="0.0" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="Arial" size="11" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftgroup_ttl}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="455"
						y="0"
						width="150"
						height="20"
						key="textField"/>
					<box>					<pen lineWidth="0.0" lineStyle="Solid"/>
					<topPen lineWidth="1.0" lineStyle="Double"/>
					<leftPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="1.0" lineStyle="Double"/>
					<rightPen lineWidth="0.0" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="11" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{grand_total}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="605"
						y="0"
						width="150"
						height="20"
						key="textField"/>
					<box>					<pen lineWidth="0.0" lineStyle="Solid"/>
					<topPen lineWidth="1.0" lineStyle="Double"/>
					<leftPen lineWidth="0.0" lineStyle="Solid"/>
					<bottomPen lineWidth="1.0" lineStyle="Double"/>
					<rightPen lineWidth="0.0" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="11" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{grand_total_terakhir}]]></textFieldExpression>
				</textField>
			</band>
			</groupFooter>
		</group>
		<group  name="index" >
			<groupExpression><![CDATA[$F{fnindex}]]></groupExpression>
			<groupHeader>
			<band height="30"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="2"
						y="0"
						width="753"
						height="30"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="11" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftcoa_subgroup_name}]]></textFieldExpression>
				</textField>
			</band>
			</groupHeader>
			<groupFooter>
			<band height="20"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="455"
						y="0"
						width="150"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{amount_fcsaldo}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="455"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["TOTAL " + $F{ftcoa_subgroup_name} + " "]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="605"
						y="0"
						width="150"
						height="20"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$V{amount_fcsaldo_terakhir}]]></textFieldExpression>
				</textField>
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="1"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="85"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="-15"
						y="18"
						width="770"
						height="17"
						key="staticText-1"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
					</textElement>
				<text><![CDATA[LAPORAN LABA RUGI PERINCIAN]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="755"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of " + $V{PAGE_NUMBER} + " "]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="0"
						y="65"
						width="455"
						height="20"
						key="staticText-9"/>
					<box></box>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="11" isBold="true"/>
					</textElement>
				<text><![CDATA[]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="455"
						y="65"
						width="150"
						height="20"
						key="staticText-9"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[This Month]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="605"
						y="65"
						width="150"
						height="20"
						key="staticText-9"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Arial" size="11"/>
					</textElement>
				<text><![CDATA[Last Month]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd-MMM-yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="35"
						width="755"
						height="30"
						key="textField-7"/>
					<box></box>
					<textElement verticalAlignment="Middle">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["Periode transaksi : " + new SimpleDateFormat("dd-MMM-yyyy").format($P{date_from}) + " s/d " + new SimpleDateFormat("dd-MMM-yyyy").format($P{date_end})]]></textFieldExpression>
				</textField>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="18"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="105"
						y="0"
						width="350"
						height="18"
						key="textField"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftcoa_name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="455"
						y="0"
						width="150"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{fcsaldo_display}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="605"
						y="0"
						width="150"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{fcsaldo_terakhir_display}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="105"
						height="18"
						key="textField-5"/>
					<box></box>
					<textElement>
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ftcoa_code}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="33"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="EEE, d MMM yyyy HH:mm:ss" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="605"
						y="0"
						width="149"
						height="33"
						key="textField-3"/>
					<box></box>
					<textElement textAlignment="Right" verticalAlignment="Bottom">
						<font fontName="Arial" pdfFontName="Helvetica-Oblique" size="11" isItalic="true"/>
					</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="0"
						y="0"
						width="605"
						height="33"
						key="textField-4"/>
					<box></box>
					<textElement verticalAlignment="Bottom">
						<font fontName="Arial" size="11"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{username}]]></textFieldExpression>
				</textField>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
