<bm:fieldname="extra_nam"expression="(Select u.unit_name From exp_org_unit_v u Where u.unit_id = (select v.unit_id from hls_bp_master v where v.enabled_flag = 'Y' and v.bp_id = t1.bp_id))"forInsert="false"forUpdate="false"/>
<bm:fieldname="import_source"/>
<bm:fieldname="import_source_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CSH510_IMPORT_SOURCE' and v.code_value =t1.import_source)"forInsert="false"forUpdate="false"/>
<bm:fieldname="approval_status"expression="decode(nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'), 'APPROVED', decode(nvl(t1.reversed_flag, 'N'), 'N', 'NEW', 'APPROVED'), nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'))"/>
<bm:fieldname="approval_status_desc"expression="(Select v.code_value_name From sys_code_values_v v Where v.code = 'WFL_STATUS' And v.code_value = decode(nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'), 'APPROVED', decode(nvl(t1.reversed_flag, 'N'), 'N', 'NEW', 'APPROVED'), nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW')))"/>
<bm:fieldname="transaction_wfl_id"/>
<bm:fieldname="import_source"/>
<bm:fieldname="import_source_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CSH510_IMPORT_SOURCE' and v.code_value =t1.import_source)"forInsert="false"forUpdate="false"/>
</bm:fields>
<bm:features>
<f:standard-who/>
...
...
@@ -147,5 +149,6 @@ and cc.data_class = 'NORMAL'
and cwo.csh_transaction_id = t1.transaction_id
and hbm.bp_name like ${@bp_name_r})"/>
<bm:query-fieldname="approval_status"queryExpression="decode(nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'), 'APPROVED', decode(nvl(t1.reversed_flag, 'N'), 'N', 'NEW', 'APPROVED'), nvl((Select nvl(cw.approval_status, 'NEW') From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW')) = ${@approval_status}"/>
<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:fieldname="confirmed_flag"/>
<bm:fieldname="import_source"/>
<bm:fieldname="import_source_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CSH510_IMPORT_SOURCE' and v.code_value =t1.import_source)"forInsert="false"forUpdate="false"/>
<!--end-->
</bm:fields>
<bm:features>
...
...
@@ -164,7 +166,7 @@
<bm:query-fieldname="bp_bank_account_num"queryExpression="t1.bp_bank_account_num like ${@bp_bank_account_num}"/>
<bm:query-fieldname="bank_name"queryExpression="(select a.bank_short_name from csh_bank_account_v a where a.bank_account_id=t1.bank_account_id) like ${@bank_name}"/>
<bm:query-fieldname="bank_branch_name"queryExpression="(select a.bank_branch_name from csh_bank_account_v a where a.bank_account_id=t1.bank_account_id) like ${@bank_branch_name}"/>
<bm:query-fieldname="contract_number"queryExpression="exists (select 1 from HLS_JOURNAL_DETAIL_LV hl where hl.journal_header_id = t1.journal_header_id and hl.reference3 = ${@contract_number})"/>
<bm:query-fieldname="contract_number"queryExpression="exists (select 1 from HLS_JOURNAL_DETAIL_LV hl where hl.journal_header_id = t1.journal_header_id and hl.reference3 like ${@contract_number})"/>