<?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="Laporan Penjualan" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="523" leftMargin="36" rightMargin="36" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="c6b9fb73-1e47-4c03-9980-95e974de79b7">
	<property name="ireport.zoom" value="1.239669421487605"/>
	<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="dokter" class="java.lang.String"/>
	<parameter name="pasien" class="java.lang.String"/>
	<parameter name="ongkos" class="java.lang.Double"/>
	<parameter name="jatuhTempo" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT
     tPenjualanDetail.`faktur` AS tPenjualanDetail_faktur,
     tPenjualanDetail.`nama` AS tPenjualanDetail_nama,
     tPenjualanDetail.`jumlah` AS tPenjualanDetail_jumlah,
     tPenjualanDetail.`satuan` AS tPenjualanDetail_satuan,
     tPenjualanDetail.`harga` AS tPenjualanDetail_harga,
     tPenjualanDetail.`diskon` AS tPenjualanDetail_diskon,
     tPenjualanDetail.`total` AS tPenjualanDetail_total,
     tPenjualan.`faktur` AS tPenjualan_faktur,
     tPenjualan.`tanggal` AS tPenjualan_tanggal,
     tPenjualan.`tunai_kredit` AS tPenjualan_tunai_kredit,
     tPenjualan.`pasien` AS tPenjualan_pasien,
     tPenjualan.`dokter` AS tPenjualan_dokter,
     tPenjualan.`total` AS tPenjualan_total,
     tPenjualan.`dikson_persen` AS tPenjualan_dikson_persen,
     tPenjualan.`diskon` AS tPenjualan_diskon,
     tPenjualan.`bayar` AS tPenjualan_bayar,
     tPenjualan.`kembali` AS tPenjualan_kembali,
     tPenjualan.`operator` AS tPenjualan_operator
FROM
     `tPenjualan` tPenjualan INNER JOIN `tPenjualanDetail` tPenjualanDetail ON tPenjualan.`faktur` = tPenjualanDetail.`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"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="52" splitType="Stretch">
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="523" height="23" uuid="47f162d2-e1ca-4d84-b44c-de53af6c8c6b"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font size="15" isBold="true"/>
				</textElement>
				<text><![CDATA[FAKTUR PENJUALAN]]></text>
			</staticText>
			<line>
				<reportElement stretchType="RelativeToBandHeight" x="1" y="38" width="522" height="1" uuid="f0688447-abd5-4761-adb9-ca4f601776bd"/>
				<graphicElement>
					<pen lineWidth="0.5" lineStyle="Dotted"/>
				</graphicElement>
			</line>
		</band>
	</title>
	<pageHeader>
		<band height="79">
			<textField>
				<reportElement x="0" y="0" width="274" height="56" uuid="91c932bb-9f18-4c49-911a-0f2232a655d7"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{header}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="33" width="10" height="11" uuid="559a847a-e901-4368-b916-0ea1fe67e47e"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="321" y="22" width="59" height="11" uuid="c7b52042-9955-4d6a-bf40-e7d728bff39f"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[Dokter]]></text>
			</staticText>
			<textField pattern="Rp #,##0.00">
				<reportElement x="390" y="22" width="126" height="11" uuid="e81d710a-af09-4944-9e20-7c958d8ebb38"/>
				<textElement>
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{dokter}]]></textFieldExpression>
			</textField>
			<textField pattern="Rp #,##0.00">
				<reportElement x="390" y="33" width="126" height="11" uuid="0fdafc6f-7c25-439d-8a28-43db5d9d311c"/>
				<textElement>
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{pasien}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="22" width="10" height="11" uuid="11590b90-55e3-4003-82f2-58fa2d888517"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="321" y="33" width="59" height="11" uuid="985d40a0-25a6-48fa-a846-eaae71b8272f"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[Pasien]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="321" y="11" width="59" height="11" uuid="3fc6e448-2a02-40cc-bb56-88e5cb0e0112"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[Faktur]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="11" width="10" height="11" uuid="c94c42ef-63c7-49a0-bb54-c99bd57f6af3"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<textField>
				<reportElement stretchType="RelativeToBandHeight" x="390" y="11" width="126" height="11" uuid="613eeeca-b650-4a41-a1d1-b7baa7ed4b39"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{faktur}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="321" y="0" width="59" height="11" uuid="6a1ec646-64e5-4216-83a0-0e8363713c92"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[Tanggal]]></text>
			</staticText>
			<textField>
				<reportElement stretchType="RelativeToBandHeight" x="390" y="0" width="126" height="11" uuid="0f0423f0-b1e4-441d-bf20-560f96b04d67"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tanggalFaktur}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="0" width="10" height="11" uuid="9fb65696-969b-4324-a933-748dce700cd4"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<textField pattern="Rp #,##0.00">
				<reportElement x="390" y="45" width="126" height="11" uuid="34ba2d5b-23ff-4832-8a37-452609dfc1a5"/>
				<textElement>
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tunai_kredit} == "tunai" ? "Tunai" : "Kredit | "+$P{jatuhTempo}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="321" y="45" width="59" height="11" uuid="28b5b283-b51a-422a-b943-2726cc7a921e"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[Pembayaran]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="45" width="10" height="11" uuid="26b0e1f6-f65b-4c92-921a-8b7b51b06538"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<line>
				<reportElement stretchType="RelativeToBandHeight" x="1" y="78" width="523" height="1" uuid="53cafcf3-d85f-4465-a9da-cc5f680004c8"/>
				<graphicElement>
					<pen lineWidth="0.5" lineStyle="Solid"/>
				</graphicElement>
			</line>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="25" splitType="Stretch">
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="461" y="0" width="62" height="16" uuid="c4b1a948-1977-484c-a09e-b88baae087d6"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Total]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="274" y="0" width="61" height="16" uuid="2a37af38-5451-42cd-b2eb-4650573ca9e9"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Satuan]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="26" y="0" width="181" height="16" uuid="9311d8ee-5413-4a0c-8d5e-4f82f68ca88c"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Nama]]></text>
			</staticText>
			<line>
				<reportElement stretchType="RelativeToBandHeight" x="0" y="18" width="523" height="1" uuid="4aaa3c6f-dd74-495b-a07f-778cfddff93c"/>
				<graphicElement>
					<pen lineWidth="2.5" lineStyle="Double"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="335" y="0" width="69" height="16" uuid="5d408a7f-1765-4f75-a557-9dbea5e47547"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Harga]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="207" y="0" width="67" height="16" uuid="61495d21-4c8c-4518-a779-c17834732470"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Jumlah]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="404" y="0" width="59" height="16" uuid="5e01b60b-57b7-4368-93c6-76cffc02f7ed"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Diskon]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="1" y="0" width="25" height="16" uuid="1c64b9a3-c838-45c5-8f8d-d7a04ff63bf1"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[No.]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="12" splitType="Stretch">
			<textField pattern="#,###">
				<reportElement stretchType="RelativeToBandHeight" x="335" y="0" width="69" height="12" uuid="a3bc3d5a-3837-4508-b7de-3b84789d5c2f"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Harga}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement stretchType="RelativeToBandHeight" x="1" y="0" width="25" height="12" uuid="324120f8-f2e2-441d-ba48-fb9125e11c09"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{REPORT_COUNT}]]></textFieldExpression>
			</textField>
			<textField pattern="#,###" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="404" y="0" width="57" height="12" uuid="ca88fb53-3ad5-462e-b247-60efb5afeaaa"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Diskon}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement stretchType="RelativeToBandHeight" x="274" y="0" width="61" height="12" uuid="8ade66d5-31c8-4bcf-83e7-1059a9063786"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Satuan}]]></textFieldExpression>
			</textField>
			<textField pattern="#,###.##">
				<reportElement stretchType="RelativeToBandHeight" x="207" y="0" width="67" height="12" uuid="4f2335d4-b185-4b5e-a764-df00005f8278"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Jumlah}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement stretchType="RelativeToBandHeight" x="26" y="0" width="181" height="12" uuid="1395f009-7948-49e2-92a2-7739bb69f98a"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Nama}]]></textFieldExpression>
			</textField>
			<textField pattern="#,###">
				<reportElement stretchType="RelativeToBandHeight" x="463" y="0" width="60" height="12" uuid="47c73da2-b9ad-4fea-9307-8a0ffd692982"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Total}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="123" splitType="Stretch">
			<staticText>
				<reportElement key="kembali" stretchType="RelativeToBandHeight" x="442" y="65" width="10" height="12" uuid="801bc276-6463-4774-a6c7-ce2bc778f288"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<textField pattern="Rp #,###">
				<reportElement x="452" y="42" width="71" height="12" uuid="1864f13d-9e6a-4008-9e3a-bccb5fb46efe"/>
				<textElement textAlignment="Right">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{grandTotal}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="442" y="21" width="10" height="12" uuid="e33cb962-3961-4f4d-ba86-e918e052665b"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="21" width="62" height="12" uuid="ac88a029-17c0-4e0c-9042-eb7f3db71738"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Diskon]]></text>
			</staticText>
			<staticText>
				<reportElement key="kembali" stretchType="RelativeToBandHeight" x="380" y="65" width="62" height="12" uuid="28ed4f8b-c04d-4698-ad9a-7189d5f2dec5"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Kembali]]></text>
			</staticText>
			<textField pattern="Rp #,###">
				<reportElement key="kembali" x="452" y="65" width="71" height="12" uuid="69861fa2-3d86-4be3-a8f4-b3e3693c1292"/>
				<textElement textAlignment="Right">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{kembali}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="tunai" stretchType="RelativeToBandHeight" x="442" y="53" width="10" height="12" uuid="2df61806-b222-4c5f-a2f7-d4c05c099ec3"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<staticText>
				<reportElement key="tunai" stretchType="RelativeToBandHeight" x="380" y="53" width="62" height="12" uuid="eef54d80-c1c3-4a02-9dab-02f3146feb7a"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Tunai]]></text>
			</staticText>
			<textField pattern="Rp #,###">
				<reportElement key="tunai" x="452" y="53" width="71" height="12" uuid="053f5623-08ad-4686-8083-5b75ef8df360"/>
				<textElement textAlignment="Right">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tunai}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="42" width="62" height="12" uuid="b65b2d22-518b-45f4-a4a7-ec97590a2d43"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Grand Total]]></text>
			</staticText>
			<textField pattern="Rp #,###">
				<reportElement x="452" y="21" width="71" height="12" uuid="6844ed8f-79d5-4076-8023-892951d5d591"/>
				<textElement textAlignment="Right">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{diskon}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="442" y="42" width="10" height="12" uuid="b20bb8e4-467b-4068-95c3-467dde36bcc8"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<textField pattern="kk:mm  dd-MM-yyyy" isBlankWhenNull="false">
				<reportElement x="31" y="105" width="107" height="12" uuid="d49ae58d-e531-4b36-99c4-5b859056f759"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tanggalCetak}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="236" y="105" width="287" height="12" uuid="7efdac78-27ec-4221-8dc5-09d01411bc1e"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA["Operator : " + $P{operator}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="1" y="105" width="30" height="12" uuid="276c0236-e1cb-462a-ba2c-5a48a738c8d4"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="false"/>
				</textElement>
				<text><![CDATA[Cetak :]]></text>
			</staticText>
			<line>
				<reportElement x="0" y="101" width="526" height="1" uuid="d555e270-1c58-4d40-9965-2cfb40e7be28"/>
				<graphicElement>
					<pen lineWidth="0.5" lineStyle="Dashed"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="442" y="31" width="10" height="12" uuid="7f9c3908-9869-4f99-b1d5-35bc7af1ab52"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8"/>
				</textElement>
				<text><![CDATA[:]]></text>
			</staticText>
			<textField pattern="Rp #,###">
				<reportElement x="452" y="31" width="71" height="12" uuid="bfd4091b-d636-4324-b5dd-5e7d45cc74dd"/>
				<textElement textAlignment="Right">
					<font size="8" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{ongkos}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement stretchType="RelativeToBandHeight" x="380" y="31" width="62" height="12" uuid="fac45962-2d0b-42c5-98b8-433ccdb730bc"/>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Tuslah]]></text>
			</staticText>
		</band>
	</columnFooter>
</jasperReport>
