<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 t1.transaction_type in ('RECEIPT','ADVANCE_RECEIPT') 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:fieldname="returned_amount"databaseType="NUMBER"datatype="java.lang.Double"physicalName="RETURNED_AMOUNT"prompt="CSH511.CSH_TRANSACTION.RETURNED_AMOUNT"expression="(select nvl(returned_amount,0) from dual)"/>
<bm:fieldname="bp_code"expression="(select d.bp_code from hls_bp_master_v d where d.bp_id=t1.bp_id)"forInsert="false"forUpdate="false"prompt="HLS.BP_CODE"/>
<bm:fieldname="bp_name"expression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id)"forInsert="false"forUpdate="false"prompt="HLS.BP_NAME"/>
<bm:fieldname="payment_method_display"expression="(select cp.description from csh_payment_method cp where cp.payment_method_id=t1.payment_method_id)"forInsert="false"forUpdate="false"prompt="HLS.PAYMENT_METHOD"/>
<bm:fieldname="currency_name"expression="(select gc.currency_name from gld_currency_vl gc where gc.currency_code=t1.currency_code)"forInsert="false"forUpdate="false"prompt="HLS.CURRENCY"/>
<bm:fieldname="bp_category_display"expression="(select b.description from hls_bp_category b where b.bp_category=t1.bp_category)"forInsert="false"forUpdate="false"prompt="CSH511.CSH_TRANSACTION.BP_CATEGORY"/>
<bm:fieldname="exchange_rate_type_display"expression="(select tv.type_name from gld_exchangerate_types_vl tv where tv.type_code=t1.exchange_rate_type)"forInsert="false"forUpdate="false"prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:fieldname="bank_account_code"expression="(select a.bank_account_code from csh_bank_account a where a.bank_account_id=t1.bank_account_id)"forInsert="false"forUpdate="false"prompt="CSH511.BANK_ACCOUNT_CODE"/>
<bm:fieldname="bank_account_name"expression="(select a.bank_account_name from csh_bank_account a where a.bank_account_id=t1.bank_account_id)"forInsert="false"forUpdate="false"prompt="CSH511.BANK_ACCOUNT_NAME"/>
<bm:fieldname="bank_account_num"expression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id)"forInsert="false"forUpdate="false"prompt="CSH511.BANK_ACCOUNT_NUM"/>
<bm:fieldname="bp_bank_account_code"expression="(select a.bank_account_code from hls_bp_master_bank_account a where a.bank_account_id = t1.bp_bank_account_id)"forInsert="false"forUpdate="false"prompt="CSH511.BP_BANK_ACCOUNT_CODE"/>
<!--<bm:field name="bp_bank_account_name" expression="(select a.bank_account_name from hls_bp_master_bank_account a where a.bank_account_id = t1.bp_bank_account_id)" forInsert="false" forUpdate="false" prompt="CSH511.BANK_ACCOUNT_NAME"/>-->
<bm:fieldname="functional_currency_code"expression="(select gb.functional_currency_code from fnd_companies fc, gld_set_of_books gb where fc.company_id = ${/session/@company_id} and fc.set_of_books_id = gb.set_of_books_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="rate_method_code"expression="(select t.rate_method_code from gld_exchangerate_types t where t.type_code=t1.exchange_rate_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="zero_amounts_allowed"expression="(select d.zero_amounts_allowed from csh_bank_account_v d where d.bank_account_id=t1.bank_account_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="precision"expression="(select g.precision from gld_currency g where g.currency_code =t1.currency_code)"forInsert="false"forUpdate="false"/>
<bm:fieldname="receipt_type_des"expression="(select v.code_value_name from sys_code_values_v v where v.code='RECEIPT_TYPE' and v.code_value=t1.receipt_type)"/>
<bm:fieldname="ref_contract_id"/>
<bm:fieldname="contract_number"expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="collection_classes"/>
<bm:fieldname="collection_classes_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)"forInsert="false"forUpdate="false"/>
<bm:fieldname="confirmed_flag_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CONFIRMED_FLAG' and v.code_value =t1.confirmed_flag)"forInsert="false"forUpdate="false"/>
<bm:fieldname="written_off_flag_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'WRITE_OFF_FLAG' and v.code_value =t1.WRITE_OFF_FLAG)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bank_branch_name"expression="(select bank_branch_name from csh_bank_branch where bank_branch_id = (select bank_branch_id from csh_bank_account where bank_account_id = t1.bank_account_id))"forInsert="false"forUpdate="false"/>
<bm:fieldname="use_money_amount"expression="(select t1.transaction_amount-t1.returned_amount from dual)"forInsert="false"forUpdate="false"/>
<bm:fieldname="opposite_band_na"/>
<bm:fieldname="banka"/>
<bm:fieldname="purpose"/>
<bm:fieldname="can_returned_amount"expression="(select transaction_amount-nvl(returned_amount,0)-nvl(write_off_amount,0) from dual)"/>
<bm:fieldname="this_return_amount"expression="nvl((sELECT r.this_return_amount from csh_transaction_return r WHERE status='APPROVING' AND r.transaction_id=t1.transaction_id),0)"/>
<bm:fieldname="gsber"/>
<bm:fieldname="sus_belnr"/>
<bm:fieldname="bp_virtual_bank_account"/>
<bm:fieldname="confirmed_flag"/>
<bm:fieldname="debt_confirmed_by"/>
<bm:fieldname="debt_confirmed_by_desc"expression="(select description from sys_user where user_id=t1.debt_confirmed_by)"forInsert="false"forUpdate="false"/>
<bm:fieldname="acc_confirmed_by"/>
<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_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="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_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_name"forInsert="false"forUpdate="false"expression="(select ha.bank_account_name 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_bank_name"forInsert="false"forUpdate="false"expression="(select ha.bank_full_name 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="return_date"forInsert="false"forUpdate="false"expression="(select listagg(to_char(ct.transaction_date,'yyyy-mm-dd'), ',') WITHIN group(order by ct.transaction_date) from csh_transaction ct where ct.return_from_csh_trx_id = t1.transaction_id and ct.returned_flag = 'RETURN')"/>
<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-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:query-fieldname="bank_account_code"queryExpression="exists (select a.bank_account_code from csh_bank_account a where a.bank_account_id=t1.bank_account_id and a.bank_account_code = ${@bank_account_code})"/>
<bm:query-fieldname="bank_account_code_from"queryExpression="(select a.bank_account_code from csh_bank_account a where a.bank_account_id=t1.bank_account_id) >= ${@bank_account_code_from}"/>
<bm:query-fieldname="bank_account_code_to"queryExpression="(select a.bank_account_code from csh_bank_account a where a.bank_account_id=t1.bank_account_id) <= ${@bank_account_code_to}"/>
<bm:query-fieldname="reverse_write_off_amount_flag"queryExpression="t1.write_off_amount > 0 and ${@reverse_write_off_amount_flag}='Y'"/>
<bm:query-fieldfield="bp_id"queryOperator="="/>
<bm:query-fieldname="description"queryExpression="t1.description like '%'||${@description}||'%'"/>
<bm:query-fieldname="bank_account_num"queryExpression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id) like '%'||upper(${@bank_account_num})||'%'"/>
<bm:query-fieldname="contract_number"queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||upper(${@contract_number})||'%'"/>
<bm:query-fieldname="attachment_return_desc"queryExpression="${@attachment_return}=DECODE((select distinct 1 from FND_ATM_ATTACHMENT_MULTI fa where fa.table_pk_value=t1.transaction_id and fa.table_name='CON_CONTRACT_BANK'),1,'Y','N')"/>