<bm:fieldname="acc_confirmed_by_desc"expression="(select description from sys_user where user_id=t1.acc_confirmed_by)"forInsert="false"forUpdate="false"/>
<bm:fieldname="acc_confirmed_by_desc"expression="(select description from sys_user where user_id=t1.acc_confirmed_by)"forInsert="false"forUpdate="false"/>
<bm:fieldname="receipt_type_n"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="receipt_type_n"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="receipt_sbo"forInsert="false"forUpdate="false"expression="(select listagg(h.sbo_num, ',') WITHIN group(order by h.journal_num) from csh_write_off cw, hls_journal_header h where cw.write_off_type = 'REFUND_ENTRY' and cw.csh_transaction_id = h.source_id and h.source_table = 'CSH_TRANSACTION' and t1.source_doc_type = cw.write_off_type and t1.source_doc_id = cw.write_off_id and exists (select 1 from hls_journal_detail d where h.journal_header_id = d.journal_header_id and cw.write_off_id = d.cashflow_id))"/>
<bm:fieldname="receipt_sbo"forInsert="false"forUpdate="false"expression="(select listagg(h.sbo_num, ',') WITHIN group(order by h.journal_num) from csh_write_off cw, hls_journal_header h where cw.write_off_type in ('REFUND_ENTRY','RECEIPT_ADVANCE_RECEIPT') and cw.csh_transaction_id = h.source_id and h.source_table = 'CSH_TRANSACTION' and t1.source_doc_type = cw.write_off_type and t1.source_doc_id = cw.write_off_id and exists (select 1 from hls_journal_detail d where h.journal_header_id = d.journal_header_id and cw.write_off_id = d.cashflow_id))"/>
<bm:fieldname="return_sbo"forInsert="false"forUpdate="false"expression="(select listagg(h.sbo_num, ',') WITHIN group(order by h.journal_num) from hls_journal_header h,csh_transaction ct where h.source_table = 'CSH_TRANSACTION' and h.source_id = ct.transaction_id and ct.return_from_csh_trx_id = t1.transaction_id and ct.returned_flag = 'RETURN')"/>
<bm:fieldname="return_sbo"forInsert="false"forUpdate="false"expression="(select listagg(h.sbo_num, ',') WITHIN group(order by h.journal_num) from hls_journal_header h,csh_transaction ct where h.source_table = 'CSH_TRANSACTION' and h.source_id = ct.transaction_id and ct.return_from_csh_trx_id = t1.transaction_id and ct.returned_flag = 'RETURN')"/>
<bm:fieldname="tenant_account_id"forInsert="false"forUpdate="false"expression="(select cc.bank_account_id from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="tenant_account_id"forInsert="false"forUpdate="false"expression="(select cc.bank_account_id from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="tenant_account_num"forInsert="false"forUpdate="false"expression="(select ha.bank_account_num from con_contract cc,hls_bp_master_bank_account ha where cc.contract_id = t1.ref_contract_id and ha.bank_account_id = cc.bank_account_id)"/>
<bm:fieldname="tenant_account_num"forInsert="false"forUpdate="false"expression="(select ha.bank_account_num from con_contract cc,hls_bp_master_bank_account ha where cc.contract_id = t1.ref_contract_id and ha.bank_account_id = cc.bank_account_id)"/>
<bm:data-filtername="query"expression="(t1.company_id=${/session/@company_id} and t1.posted_flag='Y' and t1.reversed_flag='N' and returned_flag not in ( 'RETURN') and t1.transaction_type in ('RECEIPT','ADVANCE_RECEIPT') and (nvl(t1.returned_amount, 0)+nvl(t1.write_off_amount, 0)<=t1.transaction_amount)) "/>
<bm:data-filtername="query"expression="(t1.company_id=${/session/@company_id} and t1.posted_flag='Y' and t1.reversed_flag='N' and returned_flag not in ( 'RETURN') and (nvl(t1.returned_amount, 0)+nvl(t1.write_off_amount, 0)<=t1.transaction_amount)) "/>
<!-- <bm:data-filter name="query" expression="(t1.confirmed_flag not in ('ACCAUDITING','NEW','CT_REJECTED') and t1.write_off_flag in('NOT','PARTIAL'))"/>-->
<!-- <bm:data-filter name="query" expression="(t1.confirmed_flag not in ('ACCAUDITING','NEW','CT_REJECTED') and t1.write_off_flag in('NOT','PARTIAL'))"/>-->
<bm:data-filtername="query"expression="(t1.confirmed_flag not in ('ACCAUDITING','NEW','CT_REJECTED'))"/>
<bm:data-filtername="query"expression="(t1.confirmed_flag not in ('ACCAUDITING','NEW','CT_REJECTED'))"/>
<bm:data-filtername="query"expression="((t1.transaction_type = 'ADVANCE_RECEIPT') or ((t1.transaction_type ='RECEIPT') and t1.collection_classes = 'REFUND' and t1.source_csh_trx_id is not null))"/>