FROM ACR_INVOICE_CONTRACT_V t1, ACR_INVOICE_CONTRACT_CF_V t2
FROM ACR_INVOICE_CONTRACT_V t1, ACR_INVOICE_CONTRACT_CF_V t2
#WHERE_CLAUSE#
WHERE t2.due_date<sysdate
ORDER BY
ORDER BY
t1.contract_id,
t1.contract_id,
t2.times,
t2.times,
...
@@ -341,7 +341,6 @@
...
@@ -341,7 +341,6 @@
<bm:query-fieldname="bill_flag"
<bm:query-fieldname="bill_flag"
queryExpression="(${@bill_flag} = 'Y' and t1.billing_frequency in (${@times_bill_flag},${@mid_bill_flag},${@final_bill_flag},${@et_bill_flag}) )"/>
queryExpression="(${@bill_flag} = 'Y' and t1.billing_frequency in (${@times_bill_flag},${@mid_bill_flag},${@final_bill_flag},${@et_bill_flag}) )"/>
<bm:query-fieldname="all_contract_number"
<bm:query-fieldname="all_contract_number"
queryExpression="(t1.contract_number in (Select regexp_substr( replace(replace(replace(${@all_contract_number},chr(32)),chr(10)),chr(13)), '[^,]+', 1, Level) From dual Connect By regexp_substr(replace(replace(replace(${@all_contract_number},chr(32)),chr(10)),chr(13)), '[^,]+', 1, Level) Is Not Null) )"/>
queryExpression="(t1.contract_number in (Select regexp_substr( replace(replace(replace(${@all_contract_number},chr(32)),chr(10)),chr(13)), '[^,]+', 1, Level) From dual Connect By regexp_substr(replace(replace(replace(${@all_contract_number},chr(32)),chr(10)),chr(13)), '[^,]+', 1, Level) Is Not Null) )"/>
expression="t2.billing_status != 'FULL' and t2.cf_direction='INFLOW'"/>
expression="t2.billing_status != 'FULL' and t2.cf_direction='INFLOW'"/>
<!-- <bm:data-filter enforceOperations="query"
<bm:data-filterenforceOperations="query"
expression="t2.contract_id = t1.contract_id AND t1.billing_status IN ('NOT', 'PARTIAL') AND t1.contract_status not in ('NEW','CANCEL') AND t2.cf_status = 'RELEASE'"/>
expression="t2.contract_id = t1.contract_id AND t1.billing_status IN ('NOT', 'PARTIAL') AND t1.contract_status not in ('NEW','CANCEL') AND t2.cf_status = 'RELEASE'"/>
<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"/>
<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"/>
<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 = 'CSH511_TRANSACTION_TYPE' and t.code_value in ('RECEIPT','ADVANCE_RECEIPT')"fetchAll="true"model="sys.sys_code_values_v"rootPath="transaction_type"/>
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp');
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp');
if (bp_ds_id == ds.id && bp_ds_id) {
if (bp_ds_id == ds.id && bp_ds_id) {
if (record.get('bp_category') == 'TENANT') {
if (record.get('bp_category') == 'TENANT') {
...
@@ -440,12 +442,115 @@
...
@@ -440,12 +442,115 @@
}
}
}
}
};
};
/* Leaf.onReady(function(){
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master');
//序号自增 add by lijingjing
var url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}';
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master');
var url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}';