expression="c.contract_id = ccc.contract_id and ccc.due_date <= trunc(sysdate) and c.data_class = 'NORMAL' and ccc.write_off_flag != 'FULL' and c.contract_status in ('SIGN','INCEPT') and ccc.cf_status = 'RELEASE' and ccc.cf_direction = 'INFLOW' and c.pay_method is not null"/>
<bm:data-filtername="query"
expression="not exists(select 1 from hls_ebank_batch_group g,hls_ebank_batch_ln l where g.status in ('NEW','DEAL') and g.group_id = l.group_id and l.cashflow_id = ccc.cashflow_id)"/>
(select code_value_name from sys_code_values_v where code = 'CURRENCY' and code_value = cba.currency_code and CODE_VALUE_ENABLED_FLAG = 'Y') currency_name
FROM csh_bank cb, csh_bank_branch cbb, csh_bank_account cba
<bm:fieldname="contract_number"forInsert="false"forceUpdate="false"expression="(select contract_number from con_contract c,con_contract_cashflow cf where c.contract_id = cf.contract_id and cf.cashflow_id = t1.cashflow_id)"/>
<bm:fieldname="cf_item_desc"forInsert="false"forceUpdate="false"expression="(select description from hls_cashflow_item hi,con_contract_cashflow cc where hi.cf_item = cc.cf_item and cc.cashflow_id = t1.cashflow_id)"/>
<bm:fieldname="bp_tenant_name"forInsert="false"forceUpdate="false"expression="(select h.bp_name from hls_bp_master h,con_contract c,con_contract_cashflow cf where c.contract_id = cf.contract_id and cf.cashflow_id = t1.cashflow_id and c.bp_id_tenant = h.bp_id)"/>
<bm:fieldname="times"forceUpdate="false"forInsert="false"expression="(select times from con_contract_cashflow where cashflow_id = t1.cashflow_id)"/>
<bm:fieldname="due_date"forceUpdate="false"forInsert="false"expression="(select to_char(due_date,'yyyy-mm-dd') from con_contract_cashflow where cashflow_id = t1.cashflow_id)"/>
<bm:fieldname="due_amount"forceUpdate="false"forInsert="false"expression="(select due_amount - nvl(received_amount,0) from con_contract_cashflow where cashflow_id = t1.cashflow_id)"/>
<bm:fieldname="bank_account_num"expression="(select bank_branch_num from con_contract where contract_id = t1.contract_id)"forInsert="false"forceUpdate="false"/>
<bm:fieldname="bank_account_name"expression="(select bank_account_name from con_contract where contract_id = t1.contract_id)"forInsert="false"forceUpdate="false"/>
<bm:fieldname="csh_bank_account_num"expression="(select bank_account_num from csh_bank_account cba,hls_ebank_batch heb where cba.bank_account_id = heb.bank_account_id and heb.batch_id = t1.batch_id)"forInsert="false"forceUpdate="false"/>
<bm:fieldname="csh_bank_account_name"expression="(select bank_account_name from csh_bank_account cba,hls_ebank_batch heb where cba.bank_account_id = heb.bank_account_id and heb.batch_id = t1.batch_id)"forInsert="false"forceUpdate="false"/>
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="receipt_type"/>
<bm:fieldname="paid_byother_flag"/>
<bm:fieldname="exists_advance_flag"forceUpdate="false"forInsert="false"expression="nvl((select 'Y' from dual where exists(SELECT 1 FROM csh_transaction t WHERE t.source_csh_trx_id = t1.transaction_id AND transaction_type = 'ADVANCE_RECEIPT' AND confirmed_flag != 'CANCELLED')),'N')"/>
<bm:fieldname="exists_deposit_flag"forceUpdate="false"forInsert="false"expression="nvl((select 'Y' from dual where exists(SELECT 1 FROM csh_transaction t WHERE t.source_csh_trx_id = t1.transaction_id AND transaction_type = 'DEPOSIT' AND confirmed_flag != 'CANCELLED')),'N')"/>