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 and ccc.cf_item in (1,9)"/>
<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
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"/>
<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="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="bp_code"expression="(select d.bp_code from hls_bp_master 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 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"/>
prompt="CSH511.CSH_TRANSACTION.POSTED_FLAG"/>
<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: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="functional_currency_code"
<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"/>
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)"
<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"/>
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)"
<bm:fieldname="unwrite_off_amount"datatype="java.lang.Double"expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-(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="HLS.UNWRITEOFF_AMOUNT"/>
<bm:fieldname="precision"expression="(select g.precision from gld_currency g where g.currency_code =t1.currency_code)"forInsert="false"forUpdate="false"/>
<bm:fieldname="user_desc"expression="(select su.description from sys_user su where su.user_id=t1.created_by)"forInsert="false"forUpdate="false"/>
expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-(select nvl(sum(ctr.this_return_amount),0) from csh_transaction_return ctr where ctr.transaction_id = t1.transaction_id and ctr.status = 'APPROVING'))"
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')"
<bm:fieldname="unallocate_amount"expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-nvl((select sum(i.write_off_amount) from csh_write_off_interface i where i.trx_interface_id = t1.transaction_id and i.record_type is not null),0))"
forInsert="false"forceUpdate="false"/>
<bm:fieldname="precision"
expression="(select g.precision from gld_currency g where g.currency_code =t1.currency_code)"
expression="(nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)-nvl((select sum(i.write_off_amount) from csh_write_off_interface i where i.trx_interface_id = t1.transaction_id and i.record_type is not null),0))"
@@ -96,19 +189,33 @@ where transaction_id = ${@transaction_id}
...
@@ -96,19 +189,33 @@ where transaction_id = ${@transaction_id}
<bm:fieldname="ref_v01"/>
<bm:fieldname="ref_v01"/>
<bm:fieldname="ref_v05"/>
<bm:fieldname="ref_v05"/>
<bm:fieldname="purpose"/>
<bm:fieldname="purpose"/>
<bm:fieldname="paid_byother_flag_n"expression="(select code_value_name from sys_code_values_v where code = 'PAID_BYOTHER_FLAG' and code_value = t1.paid_byother_flag)"/>
<bm:fieldname="opposite_band_na"/>
<bm:fieldname="contract_number"expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="bank_branch_name"
expression="(select a.bank_branch_name from csh_bank_account_v a where a.bank_account_id=t1.bank_account_id)"
<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="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="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')"/>
<!--end-->
<!--end-->
<!--add by lisitong-->
<!--add by lisitong-->
<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="审批中退款金额"/>
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')"
<bm:fieldname="agent_id_desc"expression="(select hbm.bp_name from hls_bp_master hbm where hbm.bp_id = t1.agent_id)"forUpdate="false"forInsert="false"/>
<bm:fieldname="agent_id_desc"expression="(select hbm.bp_name from hls_bp_master hbm where hbm.bp_id = t1.agent_id)"forUpdate="false"forInsert="false"/>
<bm:fieldname="bp_tenant_name"expression="(select bp_name from hls_bp_master where bp_id = t1.write_off_bp_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_tenant_name"expression="(select bp_name from hls_bp_master h,con_contract c where h.bp_id = c.bp_id_tenant and c.contract_id = t1.contract_id)"forInsert="false"forUpdate="false"/>