<bm:fieldname="vender_id_n"expression="(decode(vender_id,-100,'买断机',(select scv.bp_name from hls_bp_master scv where scv.enabled_flag='Y' and scv.bp_id = t1.vender_id)))"forInsert="false"forUpdate="false"/>
<bm:fieldname="finance_type_n"expression="(select code_value_name from sys_code_values_v scv where scv.code='FINANCE_TYPE' and scv.code_value = t1.finance_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="pay_method"/>
<bm:fieldname="pay_method_n"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'PAY_METHODS' and v.code_value=t1.pay_method)"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_n01"/>
<bm:fieldname="approval_status"expression="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 = 'COST_SUPPORT_STATUS' And v.code_value = nvl((Select cw.approval_status From csh_transaction_wfl cw Where cw.transaction_wfl_id = t1.transaction_wfl_id), 'NEW'))"/>
<bm:fieldname="journal_num"expression="(SELECT h.journal_num FROM hls_journal_header h, hls_journal_detail d WHERE d.source_table = 'CSH_WRITE_OFF' AND d.source_id = t1.write_off_id AND h.journal_header_id = d.journal_header_id AND h.reversed_flag = 'N' AND rownum = 1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="journal_user"expression="(SELECT u.description FROM hls_journal_detail d, sys_user u WHERE d.source_table = 'CSH_WRITE_OFF' AND d.source_id = t1.write_off_id AND d.created_by = u.user_id AND rownum = 1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="history_flag"expression="(SELECT ct.history_flag FROM csh_transaction ct WHERE ct.transaction_id = t1.csh_transaction_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="ref_bp_name"expression="(select cc.bp_name from con_contract_v cc where cc.contract_id = nvl(t1.contract_id,t1.ASSIGNS_CONTRACT_ID))"forInsert="false"forUpdate="false"/>
<bm:fieldname="ref_contract_number"expression="(select cc.contract_number from con_contract cc where cc.contract_id = nvl(t1.contract_id,t1.ASSIGNS_CONTRACT_ID))"forInsert="false"forUpdate="false"/>