<bm:fieldname="approving_return_amount"datatype="java.lang.Double"expression="(select nvl(sum(ctr.this_return_amount),0) from csh_transaction_return ctr where ctr.transaction_id = t1.transaction_id and ctr.status = 'APPROVING')"forInsert="false"forUpdate="false"prompt="审批中退款金额"/>
<bm:fieldname="created_user_name"expression="(select description from sys_user where user_id = t1.created_by)"forceUpdate="false"forInsert="false"/>
<bm:fieldname="confirm_user_name"expression="(select description from sys_user where user_id = t1.confirmed_by)"forceUpdate="false"forInsert="false"/>
<bm:fieldname="confirmed_flag_desc"expression="(select code_value_name from sys_code_values_v where code = 'CONFIRMED_FLAG' and code_value = t1.confirmed_flag)"forceUpdate="false"forInsert="false"/>
<!-- <bm:data-filter name="type" expression="t1.transaction_type in ('ADVANCE_RECEIPT','RECEIPT') and t1.returned_flag != 'FULL' and t1.reversed_flag = 'N' and nvl(t1.deposit_flag,'N')='N' "/>-->
<bm:data-filtername="type"expression="t1.transaction_type in ('ADVANCE_RECEIPT','RECEIPT') and t1.returned_flag != 'FULL' and nvl(t1.deposit_flag,'N')='N' and t1.confirmed_flag = 'APPROVED' "/>
<bm:data-filtername="type"expression="t1.transaction_type in ('ADVANCE_RECEIPT','RECEIPT') and t1.returned_flag != 'FULL' and nvl(t1.deposit_flag,'N')='N' and t1.confirmed_flag in ('WF_APPROVING','ACCAUDITED','APPROVED','WF_REJECTED') "/>
<!-- <bm:query-field field="bp_category" queryExpression="(t1.bp_category = ${@bp_category} or exists(select 1 from hls_bp_master_role br where br.bp_id = t1.bp_id and br.bp_category = ${@bp_category} and br.bp_type = ${@bp_category}))"/> -->
<!-- <bm:query-field name="contract_bp_flag" queryExpression="(exists (select 1 from con_contract_bp b where b.contract_id in (${:@contract_id}) and b.bp_id = t1.bp_id and b.bp_category in ('VENDER','TENANT','TENANT_SEC') )or nvl(${@contract_bp_flag},'N') != 'Y' )"/> -->
<bm:query-fieldname="query_reversed_flag"queryExpression="(${@query_reversed_flag}='Y' and nvl(t1.reversed_flag,'N')='N')"/>
<bm:query-fieldname="status_list_flag"queryExpression="(${@status_list_flag}='Y' and t1.status in ('U','B'))"/>
<bm:query-fieldname="gld_flag"queryExpression="exists (select 1 from gld_je_transaction d where d.je_transaction_code = t1.je_transaction_code and d.gld_flag = ${@gld_flag})"/>
<bm:query-fieldname="bp_id_tenant"queryExpression="exists (select 1 from hls_journal_detail_v dv where dv.reference1=(select a.bp_code from hls_bp_master a where a.bp_id=${@bp_id_tenant} )and dv.journal_header_id=t1.journal_header_id )"/>
<bm:query-fieldname="desc"queryExpression="t1.description like '%'||${@desc}||'%' "/>
<a:model-querydefaultWhereClause="t.code = 'CSH511_TRANSACTION_TYPE' and t.code_value in ('RECEIPT','ADVANCE_RECEIPT')"fetchAll="true"model="sys.sys_code_values_v"rootPath="transaction_type"/>
<a:model-querydefaultWhereClause="t.code = 'CSH510_RETURN_SELECT' and t.code_value not in ('RETURN')"fetchAll="true"model="sys.sys_code_values_v"rootPath="returned_flag_rp"/>
<a:model-querydefaultWhereClause="t.code = 'CSH510_REVERSE_SELECT' and t.code_value not in ('R')"fetchAll="true"model="sys.sys_code_values_v"rootPath="reversed_flag_rp"/>
<a:model-query
defaultWhereClause="t.code = 'CSH511_TRANSACTION_TYPE' and t.code_value in ('RECEIPT','ADVANCE_RECEIPT')"
<a:model-querydefaultWhereClause="t.code = 'CSH511_TRANSACTION_TYPE' and t.code_value in ('RECEIPT','ADVANCE_RECEIPT')"fetchAll="true"model="sys.sys_code_values_v"rootPath="transaction_type"/>
<a:model-querydefaultWhereClause="t.code = 'CSH510_RETURN_SELECT' and t.code_value not in ('RETURN')"fetchAll="true"model="sys.sys_code_values_v"rootPath="returned_flag_rp"/>
<a:model-querydefaultWhereClause="t.code = 'CSH510_REVERSE_SELECT' and t.code_value not in ('R')"fetchAll="true"model="sys.sys_code_values_v"rootPath="reversed_flag_rp"/>
<a:model-query
defaultWhereClause="t.code = 'CSH511_TRANSACTION_TYPE' and t.code_value in ('RECEIPT','ADVANCE_RECEIPT')"
<a:model-querydefaultWhereClause="header_id=${/model/header/record/@header_id} and TEMPLATE_CODE = 'CSH_TRX_BANK'"model="basic.hls_fnd_attribute_status"rootPath="status"/>