'FN' ),0) as clrdep_amt, nvl(( select sum(item_payamt) from slslippayindet where slslippayindet.payinslip_no = slslippayout.slipclear_no and slipitemtype_code = 'PKN' ),0) as clrins_amt, ( select sum(item_payamt) from slslippayindet where slslippayindet.payinslip_no = slslippayout.slipclear_no and slipitemtype_code = 'BJN' ) as clrbrij_amt, ( select sum(item_payamt) from slslippayindet where slslippayindet.payinslip_no = slslippayout.slipclear_no and slipitemtype_code = 'INF' ) as clrbinf_amt, ( select sum(item_payamt) from slslippayindet where slslippayindet.payinslip_no = slslippayout.slipclear_no and slipitemtype_code in( 'VAT','MFE', 'EMS', 'ONL', 'MTR' ) ) as clrmoneyorder_amt, ( select sum(item_payamt) from slslippayindet where slslippayindet.payinslip_no = slslippayout.slipclear_no and slipitemtype_code in( 'BFE','BTR' ) ) as clrmoneybank_amt, ( select sum(interest_payamt) from slslippayindet where slslippayindet.payinslip_no = slslippayout.slipclear_no and slslippayout.slip_status <> -9 ) as interest_amt, (select sum(intestimate_amt) from lnreqloan where lnreqloan.loancontract_no=slslippayout.loancontract_no and slslippayout.slip_status <> -9 and lnreqloan.loanrequest_status<>-9 )as intestimate_amt, (select period_payment from lncontmaster where lncontmaster.loancontract_no=slslippayout.loancontract_no and slslippayout.slip_status <> -9 and lncontmaster.contract_status<>-1 )as period_payment, (select period_payamt from lncontmaster where lncontmaster.loancontract_no=slslippayout.loancontract_no and slslippayout.slip_status <> -9 and lncontmaster.contract_status<>-1 )as period_payamt, slslippayout .payoutnet_amt, cmucfmoneytype.moneytype_desc, slslippayout .entry_id, slslippayout.shrlontype_code, slslippayout.moneytype_code, slslippayout.expense_bank, lnloantype.loangroup_code,lnloantype.loantype_desc from slslippayout ,mbmembmaster,mbucfmembgroup,mbucfprename,cmucfmoneytype,lnloantype where slslippayout.member_no =mbmembmaster.member_no and slslippayout.memcoop_id =mbmembmaster.coop_id and slslippayout.shrlontype_code =lnloantype.loantype_code and slslippayout.coop_id =lnloantype.coop_id and mbmembmaster.membgroup_code =mbucfmembgroup.membgroup_code and mbmembmaster.coop_id = mbucfmembgroup.coop_id and mbmembmaster.prename_code =mbucfprename.prename_code and slslippayout.moneytype_code = cmucfmoneytype.moneytype_code (+) and slslippayout.slip_date between $P{adtm_start} and $P{adtm_end} and slslippayout.slip_status <>-9 and slslippayout.rcv_period > 1 and slslippayout.shrlontype_code between $P{as_startlntype} and $P{as_endlntype} and slslippayout.sliptype_code ='LWD' order by slslippayout .loancontract_no asc]]> <band height="79" splitType="Stretch"> <staticText> <reportElement uuid="6cb4d1b7-91a3-40d6-9fe1-c7cf1be9aef7" x="0" y="59" width="63" height="20"/> <textElement/> <text><![CDATA[เลขที่สมาชิก]]></text> </staticText> <staticText> <reportElement uuid="565acf3c-eee3-4e5c-b85b-51d662687f4a" x="63" y="59" width="135" height="20"/> <textElement/> <text><![CDATA[ชื่อ สกุล]]></text> </staticText> <staticText> <reportElement uuid="a53c3f83-6055-4495-ba7a-036d555dfc70" x="198" y="59" width="56" height="20"/> <textElement/> <text><![CDATA[หน่วย]]></text> </staticText> <staticText> <reportElement uuid="16008eb7-86ed-4ec0-88b7-e56824f1b4fd" x="254" y="59" width="88" height="20"/> <textElement/> <text><![CDATA[หน่วย]]></text> </staticText> <staticText> <reportElement uuid="d261cb97-47f4-4c36-a3f2-11fb3c1e7d9f" x="342" y="59" width="55" height="20"/> <textElement/> <text><![CDATA[เงินกู้]]></text> </staticText> <staticText> <reportElement uuid="f7c32ec6-8b52-4187-8ea8-e144d10f849a" x="397" y="59" width="57" height="20"/> <textElement/> <text><![CDATA[เลขที่สัญญา]]></text> </staticText> <staticText> <reportElement uuid="057034a8-a13a-43bb-98b9-858c8a81925f" x="454" y="59" width="49" height="20"/> <textElement textAlignment="Right"/> <text><![CDATA[ยอดขอกู้]]></text> </staticText> <staticText> <reportElement uuid="646a6d0b-6c3e-4d05-8579-1c06123ab6cd" x="705" y="59" width="52" height="20"/> <textElement/> <text><![CDATA[หักซื้อหุ้น]]></text> </staticText> <staticText> <reportElement uuid="abd8424d-a068-4225-9c36-5b90bfe49d62" x="758" y="59" width="59" height="20"/> <textElement/> <text><![CDATA[หักเข้าฝาก]]></text> </staticText> <staticText> <reportElement uuid="8c7ebc16-404f-4744-b044-8d7df4fd1e77" x="817" y="59" width="46" height="20"/> <textElement/> <text><![CDATA[หักประกัน]]></text> </staticText> <staticText> <reportElement uuid="48958e89-9f71-4751-890f-60b0bcc837ab" x="863" y="59" width="59" height="20"/> <textElement/> <text><![CDATA[ยอดรับสุทธิ]]></text> </staticText> <staticText> <reportElement uuid="a7b5a9a8-35fc-4708-9720-e893e875e2d2" x="0" y="0" width="555" height="20"/> <textElement/> <text><![CDATA[รายงานรับเงินกู้เพิ่ม]]></text> </staticText> <textField> <reportElement uuid="5d529672-28d7-4431-b529-fd82d6f354f1" x="163" y="20" width="107" height="20"/> <textElement> <font fontName="Angsana New" size="16"/> </textElement> <textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy",new Locale("th","TH")).format( $P{adtm_start})]]></textFieldExpression> </textField> <staticText> <reportElement uuid="1efd0d8e-188b-4a29-8dde-61f7a2102e2c" x="63" y="20" width="100" height="20"/> <textElement/> <text><![CDATA[ตั้งแต่วันที่]]></text> </staticText> <staticText> <reportElement uuid="bb9b3f3c-5f88-4330-8325-fd51411c5662" x="270" y="20" width="72" height="20"/> <textElement/> <text><![CDATA[ถึงวันที่]]></text> </staticText> <textField> <reportElement uuid="c16210ca-619b-4200-9690-8910b20f0962" x="342" y="20" width="78" height="20"/> <textElement> <font fontName="Angsana New" size="16"/> </textElement> <textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy",new Locale("th","TH")).format( $P{adtm_end})]]></textFieldExpression> </textField> <staticText> <reportElement uuid="dc6443d7-c915-402d-a8e7-a1bd06746952" x="503" y="59" width="80" height="20"/> <textElement textAlignment="Right"/> <text><![CDATA[สัญญาเดิม]]></text> </staticText> <staticText> <reportElement uuid="25a21d50-c0d7-441b-89e5-5459725bcb83" x="583" y="59" width="62" height="20"/> <textElement textAlignment="Right"/> <text><![CDATA[เงินต้น]]></text> </staticText> <staticText> <reportElement uuid="010da163-8f69-410f-a36a-3698c15879d0" x="645" y="59" width="58" height="20"/> <textElement textAlignment="Right"/> <text><![CDATA[ดอกเบี้ย]]></text> </staticText> </band>