<bm:query-fieldname="reverse_detail_flag"queryExpression="${@reverse_detail_flag}='Y' and t1.write_off_type in ('RECEIPT_CREDIT','RECEIPT_ADVANCE_RECEIPT','ADVANCE_RECEIPT_CREDIT','DEPOSIT','RISK','DEPOSIT_CUS','RECEIPT_NONBUSINESS')"/>
<bm:query-fieldname="reverse_detail_flag"queryExpression="(${@deposit_type}='Y' and t1.write_off_type='DEPOSIT_CREDIT')or(${@reverse_detail_flag}='Y' and ${@deposit_type} in('N',null) and t1.write_off_type in ('RECEIPT_CREDIT','RECEIPT_ADVANCE_RECEIPT','ADVANCE_RECEIPT_CREDIT','DEPOSIT','RISK','DEPOSIT_CUS','RECEIPT_NONBUSINESS'))"/>
<bm:fieldname="transaction_amount"databaseType="NUMBER"datatype="java.lang.Double"physicalName="TRANSACTION_AMOUNT"prompt="CSH511.CSH_TRANSACTION.TRANSACTION_AMOUNT"expression="(select to_char(transaction_amount,'99999999.99') 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="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: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:fieldname="transaction_amount"databaseType="NUMBER"datatype="java.lang.Double"physicalName="TRANSACTION_AMOUNT"prompt="CSH511.CSH_TRANSACTION.TRANSACTION_AMOUNT"expression="(select to_char(transaction_amount,'99999999.99') 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="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="deposit_trans_type"/>
<bm:fieldname="paid_byother_flag"/>
<bm:fieldname="deposit_trans_type_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_name_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_id_telnet_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)"forInsert="false"forUpdate="false"/>
<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-field name="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="bp_id_telnet_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant) like ${@bp_id_telnet_n}"/>
<bm:query-fieldname="contract_number"queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||${@contract_number}||'%'"/>
<bm:query-fieldname="bp_name_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1) like ${@bp_name_n} "/>
<bm:fieldname="transaction_amount"databaseType="NUMBER"datatype="java.lang.Double"physicalName="TRANSACTION_AMOUNT"prompt="CSH511.CSH_TRANSACTION.TRANSACTION_AMOUNT"expression="(select to_char(transaction_amount,'99999999.99') 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="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="deposit_trans_type"/>
<bm:fieldname="bp_id_telnet_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_name_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="deposit_trans_type_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)"forInsert="false"forUpdate="false"/>
<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-field name="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="bp_id_telnet_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant) like ${@bp_id_telnet_n}"/>
<bm:query-fieldname="contract_number"queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||${@contract_number}||'%'"/>
<bm:query-fieldname="bp_name_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1) like ${@bp_name_n} "/>
<bm:fieldname="transaction_amount"databaseType="NUMBER"datatype="java.lang.Double"physicalName="TRANSACTION_AMOUNT"prompt="CSH511.CSH_TRANSACTION.TRANSACTION_AMOUNT"expression="(select to_char(transaction_amount,'99999999.99') 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="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="deposit_trans_type"/>
<bm:fieldname="bp_name_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_id_telnet_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="deposit_trans_type_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)"forInsert="false"forUpdate="false"/>
<bm:data-filtername="query"expression="(exists (select 1 from csh_write_off cw where cw.csh_transaction_id=transaction_id and cw.write_off_type='DEPOSIT_CREDIT'))"/>
<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-field name="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="bp_id_telnet_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant) like ${@bp_id_telnet_n}"/>
<bm:query-fieldname="contract_number"queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||${@contract_number}||'%'"/>
<bm:query-fieldname="bp_name_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1) like ${@bp_name_n} "/>
<bm:fieldname="transaction_amount"databaseType="NUMBER"datatype="java.lang.Double"physicalName="TRANSACTION_AMOUNT"prompt="CSH511.CSH_TRANSACTION.TRANSACTION_AMOUNT"expression="(select to_char(transaction_amount,'99999999.99') 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="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="deposit_trans_type"/>
<bm:fieldname="deposit_trans_type_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_name_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_id_telnet_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)"forInsert="false"forUpdate="false"/>
<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-field name="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="bp_id_telnet_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant) like ${@bp_id_telnet_n}"/>
<bm:query-fieldname="contract_number"queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||${@contract_number}||'%'"/>
<bm:query-fieldname="bp_name_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1) like ${@bp_name_n} "/>
defaultWhereClause="v.code='CSH511_TRANSACTION_TYPE' and v.code_value in ('PAYMENT','RECEIPT','ADVANCE_RECEIPT','DEPOSIT')"
<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"/>
defaultWhereClause="v.code='CSH511_TRANSACTION_TYPE' and v.code_value in ('PAYMENT','RECEIPT','ADVANCE_RECEIPT','DEPOSIT')"
<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"/>
defaultWhereClause="v.code='CSH511_TRANSACTION_TYPE' and v.code_value in ('PAYMENT','RECEIPT','ADVANCE_RECEIPT','DEPOSIT')"
<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"/>