<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Faktur 180mm" pageWidth="137" pageHeight="144000" columnWidth="137" leftMargin="0" rightMargin="0" topMargin="8" bottomMargin="5" isIgnorePagination="true" uuid="c6b9fb73-1e47-4c03-9980-95e974de79b7">
	<property name="ireport.zoom" value="2.3579476910000023"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="header" class="java.lang.String"/>
	<parameter name="footer" class="java.lang.String"/>
	<parameter name="tanggalCetak" class="java.util.Date"/>
	<parameter name="tanggalFaktur" class="java.util.Date"/>
	<parameter name="faktur" class="java.lang.String">
		<defaultValueExpression><![CDATA[$P{faktur}]]></defaultValueExpression>
	</parameter>
	<parameter name="tunai_kredit" class="java.lang.String"/>
	<parameter name="tunai" class="java.lang.Double"/>
	<parameter name="diskon" class="java.lang.Double"/>
	<parameter name="kembali" class="java.lang.Double"/>
	<parameter name="grandTotal" class="java.lang.Double"/>
	<parameter name="operator" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="pelanggan" class="java.lang.String"/>
	<parameter name="suplier" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT
     tPenjualan.`faktur` AS tPenjualan_faktur,
     tPenjualan.`tanggal` AS tPenjualan_tanggal,
     tPenjualan.`waktu` AS tPenjualan_waktu,
     tPenjualan.`tunai_kredit` AS tPenjualan_tunai_kredit,
     tPenjualan.`nhari` AS tPenjualan_nhari,
     tPenjualan.`jatuh_tempo` AS tPenjualan_jatuh_tempo,
     tPenjualan.`jenis_penjualan` AS tPenjualan_jenis_penjualan,
     tPenjualan.`kode_pelanggan` AS tPenjualan_kode_pelanggan,
     tPenjualan.`pelanggan` AS tPenjualan_pelanggan,
     tPenjualan.`kode_sales` AS tPenjualan_kode_sales,
     tPenjualan.`sales` AS tPenjualan_sales,
     tPenjualan.`kode_dokter` AS tPenjualan_kode_dokter,
     tPenjualan.`dokter` AS tPenjualan_dokter,
     tPenjualan.`total` AS tPenjualan_total,
     tPenjualan.`dikson_persen` AS tPenjualan_dikson_persen,
     tPenjualan.`diskon` AS tPenjualan_diskon,
     tPenjualan.`ppn` AS tPenjualan_ppn,
     tPenjualan.`bayar` AS tPenjualan_bayar,
     tPenjualan.`kembali` AS tPenjualan_kembali,
     tPenjualan.`total_harga_beli` AS tPenjualan_total_harga_beli,
     tPenjualan.`total_laba` AS tPenjualan_total_laba,
     tPenjualan.`operator` AS tPenjualan_operator,
     tPenjualanDetail.`faktur` AS tPenjualanDetail_faktur,
     tPenjualanDetail.`kode` AS tPenjualanDetail_kode,
     tPenjualanDetail.`nama` AS tPenjualanDetail_nama,
     tPenjualanDetail.`jumlah` AS tPenjualanDetail_jumlah,
     tPenjualanDetail.`satuan` AS tPenjualanDetail_satuan,
     tPenjualanDetail.`harga_beli` AS tPenjualanDetail_harga_beli,
     tPenjualanDetail.`harga` AS tPenjualanDetail_harga,
     tPenjualanDetail.`diskon` AS tPenjualanDetail_diskon,
     tPenjualanDetail.`total` AS tPenjualanDetail_total,
     tPenjualanDetail.`laba` AS tPenjualanDetail_laba,
     tPenjualanDetail.`jumlah_konversi` AS tPenjualanDetail_jumlah_konversi
FROM
     `tPenjualanDetail` tPenjualanDetail INNER JOIN `tPenjualan` tPenjualan ON tPenjualanDetail.`faktur` = tPenjualan.`faktur`
WHERE
     tPenjualan.`faktur` = '$P!{faktur}']]>
	</queryString>
	<field name="Kode" class="java.lang.String"/>
	<field name="Nama" class="java.lang.String"/>
	<field name="Jumlah" class="java.lang.Double"/>
	<field name="Harga" class="java.lang.Double"/>
	<field name="Total" class="java.lang.Double"/>
	<field name="Satuan" class="java.lang.String"/>
	<field name="Diskon" class="java.lang.Double"/>
	<title>
		<band height="18">
			<textField isStretchWithOverflow="true">
				<reportElement key="header" isPrintRepeatedValues="false" x="0" y="0" width="137" height="16" uuid="91c932bb-9f18-4c49-911a-0f2232a655d7"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false"/>
					<paragraph lineSpacing="Double" lineSpacingSize="1.0"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{header}.toUpperCase()]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="59" splitType="Stretch">
			<line>
				<reportElement mode="Opaque" x="-1" y="53" width="137" height="1" forecolor="#000000" backcolor="#FFFFFF" uuid="58bea320-d63e-46f5-bf66-d599345ac754"/>
				<graphicElement fill="Solid">
					<pen lineWidth="0.5" lineStyle="Dashed"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement x="0" y="26" width="40" height="12" uuid="ced57165-f27c-4cb2-a845-8f62eb3dab85"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[PEL.]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="17" width="40" height="12" uuid="f8646893-c10e-47bd-b7b2-9116703a0091"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[FAKTUR]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="35" width="40" height="12" uuid="8139bbce-caa7-4a0f-9157-51345220f5f7"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[PEMB.]]></text>
			</staticText>
			<staticText>
				<reportElement x="41" y="17" width="7" height="12" uuid="b40fd0de-89a6-460b-b1cc-14416dae1a31"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement x="41" y="26" width="7" height="12" uuid="bda93378-7590-4d81-aecb-586fe139a3a0"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement x="41" y="35" width="7" height="12" uuid="172e9915-58b8-4784-95a6-80386445fda4"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement x="41" y="8" width="7" height="12" uuid="2513ef35-bf67-4dac-b39a-d663865d64fb"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="8" width="40" height="12" uuid="a1edb8de-7c57-4916-a6da-955aac4eafed"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[TANGGAL]]></text>
			</staticText>
			<textField>
				<reportElement x="52" y="17" width="85" height="12" uuid="2b6edbd0-1abf-48e9-962a-25778307115d"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{faktur}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="52" y="35" width="85" height="12" uuid="4272f971-9139-40fe-a9db-2bbcdf3ebf96"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tunai_kredit}.toUpperCase()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="52" y="26" width="85" height="12" uuid="5790a886-27d2-4157-874a-9967790dc6f1"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{pelanggan}.toUpperCase()]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd-MM-yyyy">
				<reportElement x="52" y="8" width="85" height="12" isPrintWhenDetailOverflows="true" uuid="dcd68e33-2525-4ecd-835f-eb9c252cb11f"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tanggalFaktur}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="2" width="137" height="1" uuid="d820df37-c486-43a0-b4bc-7c36f8e43b0f"/>
				<graphicElement>
					<pen lineWidth="0.5" lineStyle="Dashed"/>
				</graphicElement>
			</line>
		</band>
	</pageHeader>
	<detail>
		<band height="22" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="1" y="-2" width="135" height="12" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="250bac09-7d69-45a9-9b65-ea17ddd44d9b"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Nama}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,###">
				<reportElement stretchType="RelativeToTallestObject" x="100" y="8" width="37" height="12" isPrintWhenDetailOverflows="true" uuid="accf5dcc-cc0e-4e56-8be6-451e8cbea246"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Total}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,###">
				<reportElement stretchType="RelativeToTallestObject" x="22" y="8" width="35" height="12" isPrintWhenDetailOverflows="true" uuid="20ea29d6-1b5a-4a0b-b593-4ce9b5db68c5"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Harga}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="-#,###.##" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="56" y="8" width="35" height="12" isPrintWhenDetailOverflows="true" uuid="07bdbb85-e817-4c5a-acc2-a4d5edb3d26f"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Diskon} == 0 ? null : $F{Diskon}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,### X">
				<reportElement stretchType="RelativeToTallestObject" x="1" y="8" width="22" height="12" isPrintWhenDetailOverflows="true" uuid="8559c121-9770-442d-9889-9391193f236b"/>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Jumlah}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="95" y="8" width="7" height="12" uuid="b6d9e829-c91b-4003-8850-bc07ea1f4ac6"/>
				<textElement verticalAlignment="Top" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[=]]></text>
			</staticText>
		</band>
	</detail>
	<columnFooter>
		<band height="133">
			<line>
				<reportElement mode="Opaque" x="0" y="4" width="137" height="1" forecolor="#000000" backcolor="#FFFFFF" uuid="c53aa5a3-2b43-4f83-94f2-bea420fc6b79"/>
				<graphicElement fill="Solid">
					<pen lineWidth="0.5" lineStyle="Dashed"/>
				</graphicElement>
			</line>
			<textField>
				<reportElement x="1" y="86" width="135" height="47" uuid="236064a5-72f4-4710-a47d-38178f92966e"/>
				<textElement>
					<font fontName="SansSerif" size="8" isBold="false"/>
					<paragraph lineSpacing="Proportional" lineSpacingSize="1.0"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{footer}.toUpperCase()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="tunai" stretchType="RelativeToBandHeight" x="17" y="30" width="51" height="12" uuid="b0089697-2eb7-461f-ad0f-e812f9a741c0"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[TUNAI]]></text>
			</staticText>
			<staticText>
				<reportElement key="tunai" stretchType="RelativeToBandHeight" x="68" y="30" width="10" height="12" uuid="35b63c47-7f9e-406d-a16d-d1514da4c14e"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="17" y="12" width="51" height="12" uuid="5e4c2ca0-bef6-4283-a2b8-1b51766470c1"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[DISKON]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="68" y="12" width="10" height="12" uuid="a4171bf6-c418-4b7e-be1c-1db54392d7f9"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="17" y="21" width="51" height="12" uuid="0df12df9-ccf0-4a80-b3eb-e8bd69fe4936"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[GRAN TOT.]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="68" y="21" width="10" height="12" uuid="0e5baaf2-e670-4726-b081-e063d7ba1ed3"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement key="kembali" stretchType="RelativeToBandHeight" x="68" y="46" width="10" height="12" uuid="934afacb-79fb-4b47-aa5f-fb0f19b1005a"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement key="kembali" stretchType="RelativeToBandHeight" x="17" y="46" width="51" height="12" uuid="cf241c5c-ac2b-4801-aff6-31d5cf3b1c58"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[KEMBALI]]></text>
			</staticText>
			<line>
				<reportElement mode="Opaque" x="0" y="65" width="137" height="1" forecolor="#000000" backcolor="#FFFFFF" uuid="707835ef-8ce3-4db5-b4aa-5b122f676cce"/>
				<graphicElement fill="Solid">
					<pen lineWidth="0.5" lineStyle="Dashed"/>
				</graphicElement>
			</line>
			<textField isStretchWithOverflow="true" pattern="kk:mm dd-MM-yyyy">
				<reportElement x="0" y="66" width="77" height="12" uuid="ccdccd24-d5c7-49bd-a08d-381b912883b1"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tanggalCetak}]]></textFieldExpression>
			</textField>
			<textField pattern="Rp #,###">
				<reportElement x="79" y="21" width="57" height="12" uuid="a96f51e7-2f81-4f0e-9fc7-cc825e00cdfa"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{grandTotal}]]></textFieldExpression>
			</textField>
			<textField pattern="Rp #,###">
				<reportElement x="79" y="12" width="57" height="12" uuid="20630690-3f62-46b9-a85c-74c613334286"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{diskon}]]></textFieldExpression>
			</textField>
			<textField pattern="Rp #,###">
				<reportElement key="tunai" x="78" y="30" width="58" height="12" uuid="30f504fd-68d6-4c2f-b092-fa48b0dfe67c"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tunai}]]></textFieldExpression>
			</textField>
			<textField pattern="Rp #,###">
				<reportElement key="kembali" x="78" y="46" width="58" height="12" uuid="8dc6fd0f-a111-46ec-ad12-d85ebf6661ab"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{kembali}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="77" y="66" width="59" height="12" uuid="313e1d1b-a3b3-42d3-8a6d-44261d67dcb5"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{operator}.toUpperCase()]]></textFieldExpression>
			</textField>
			<line>
				<reportElement key="kembali" mode="Opaque" x="77" y="44" width="59" height="1" forecolor="#000000" backcolor="#FFFFFF" uuid="c11cd57b-8e4e-4d41-96be-70245fbb3ae5"/>
				<graphicElement fill="Solid">
					<pen lineWidth="0.5" lineStyle="Dashed"/>
				</graphicElement>
			</line>
		</band>
	</columnFooter>
</jasperReport>
