(select sv.code_value_name from sys_code_values_v sv where sv.code='HLS050.HLS_PRICE_LIST.CALC_METHOD' and sv.code_value=p.calc_method) calc_method_name,
lower(t.lov_cascade_para1) lov_cascade_para1,
lower(t.lov_cascade_para2) lov_cascade_para2,
lower(t.lov_cascade_para3) lov_cascade_para3,
t.lower_limit,
t.upper_limit,
(select h.source_doc_category from hls_fin_calculator_hd h where h.calc_session_id = ${@calc_session_id} )source_doc_category
<bm:query-fieldfield="display_flag"queryExpression="(t.display_flag=${@display_flag} or (t.display_flag='C' and exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${@calc_session_id} and q.layout_area_seq=t.layout_area_seq and q.column_name=t.column_name and q.display_flag='Y')))"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filterenforceOperations="query"expression="(t.layout_area_seq = 'H' and t.price_list=p.price_list and t.price_list = nvl(${@price_list},(select h.price_list from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id})))"/>
<bm:data-filterenforceOperations="query"expression=" (t.column_name not in('BTB_INT_RATE') )"></bm:data-filter>
<bm:data-filtername="query"expression="(d.price_list =nvl(${@price_list},(select h.price_list from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id})) and d.layout_area_seq = 'L' and lower(d.column_name)=nvl(${@column_name},lower(d.column_name)) and d.price_list=p.price_list)"/>
<bm:data-filterenforceOperations="query"expression=" (d.column_name not in('BTB_INTEREST','BTB_FEE') )"></bm:data-filter>
<bm:fieldname="guarantor_name_duty_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'YES_NO' and v.code_value = t1.guarantor_name_duty)"forInsert="false"forUpdate="false"prompt="担保人履行担保义务"/>
<bm:data-filtername="query"expression="(t1.confirmed_flag in ('ACCAUDITED','APPROVED','WF_REJECTED'))"/>
<bm:data-filtername="query"expression="((t1.transaction_type = 'DEPOSIT' and t1.ref_contract_id is null) or (t1.collection_classes = 'REFUND' and t1.ref_contract_id is null and t1.source_csh_trx_id is null ) or (t1.transaction_type in ('ADVANCE_RECEIPT','RECEIPT') and nvl(t1.collection_classes,'NON') != 'REFUND'))"/>
<bm:data-filtername="query"expression="((t1.transaction_type = 'DEPOSIT' and t1.ref_contract_id is null) or (t1.collection_classes = 'REFUND' and t1.ref_contract_id is null and t1.source_csh_trx_id is null ) or (t1.transaction_type in ('RECEIPT') and nvl(t1.collection_classes,'NON') != 'REFUND'))"/>
<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"/>
and v.code_value = t1.deposit_trans_type))"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_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="vender_contract_number"expression="(select cc.search_term_1 vender_contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="vender_project_number"expression="(select p.project_number vender_project_number from prj_project_lease_item pi, prj_project p, con_contract_lease_item ci where pi.source_project_id = p.project_id and pi.project_lease_item_id = ci.project_lease_item_id and ci.contract_id=t1.ref_contract_id)"/>
<bm:fieldname="business_type"expression="(select cc.business_type from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="business_type_desc"expression="(select hb.description from con_contract cc,hls_business_type_v hb where cc.business_type= hb.business_type and hb.enabled_flag = 'Y' and cc.contract_id = t1.ref_contract_id)"/>
and ga.account_code in('2221001020','2221001023','2221001024')
and ga.account_code in('2221001020','2221001023','2221001024','2221001026')
and h.reversed_flag='N'
and h.internal_period_num=to_number(${@base_period})
And (h.je_transaction_code ='HL_SALES_TAX_ACT_NEW' )
And (h.je_transaction_code in ('HL_SALES_TAX_ACT_NEW','FIN_INCOME_RECOGNITION_OP') )
and( (trunc(h.journal_date)<=trunc(to_date('2020-01-31','yyyy-mm-dd')) and h.description='MANUAL_IMPORT')or(trunc(h.journal_date)>trunc(to_date('2020-01-31','yyyy-mm-dd'))))
union
SELECT h.period_year,
...
...
@@ -329,7 +329,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end due_amount,
null principal,
...
...
@@ -353,7 +353,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end interest,
round(l.amount_cr -
...
...
@@ -380,7 +380,7 @@ SELECT h.period_year,
and h.sbo_num is not null
and h.total_amount_dr != 0
and ga.account_id = l.account_id
and ga.account_code in ('2221001020', '2221001023','2221001024')
and ga.account_code in ('2221001020', '2221001023','2221001024','2221001026')
and h.reversed_flag = 'N'
and h.internal_period_num = to_number(${@base_period})
<!-- <bm:data-filter enforceOperations="query" expression="(t1.amount_tax > 0 or t1.fixed_data_flag='Y')"/>-->
<!-- <bm:data-filter enforceOperations="query" expression="(t1.amount_tax > 0 or t1.fixed_data_flag='Y')"/>-->
<bm:data-filterenforceOperations="query"expression="(exists(select 1 from con_contract cc where cc.contract_number=t1.contract_number and cc.contract_status!='CANCEL' and cc.data_class='NORMAL') or t1.fixed_data_flag='Y')"/>
and ga.account_code in('2221001020','2221001023','2221001024')
and ga.account_code in('2221001020','2221001023','2221001024','2221001026')
and h.reversed_flag='N'
and h.internal_period_num<=to_number(${@end_period})
and h.internal_period_num>=to_number(${@start_period})
And (h.je_transaction_code ='HL_SALES_TAX_ACT_NEW' )
And (h.je_transaction_code in ('HL_SALES_TAX_ACT_NEW','FIN_INCOME_RECOGNITION_OP') )
and( (trunc(h.journal_date)<=trunc(to_date('2020-01-31','yyyy-mm-dd')) and h.description='MANUAL_IMPORT')or(trunc(h.journal_date)>trunc(to_date('2020-01-31','yyyy-mm-dd'))))
union
SELECT h.period_year,
...
...
@@ -336,7 +336,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end due_amount,
null principal,
...
...
@@ -365,7 +365,7 @@ SELECT h.period_year,
(select 1
from gld_accounts g
where g.account_id = d.account_id
and g.account_code in ('1122000001', '1122000002'))
and g.account_code in ('1122000001', '1122000002','1122000005'))
and rownum = 1)
end interest,
round(l.amount_cr -
...
...
@@ -392,7 +392,7 @@ SELECT h.period_year,
and h.sbo_num is not null
and h.total_amount_dr != 0
and ga.account_id = l.account_id
and ga.account_code in ('2221001020', '2221001023','2221001024')
and ga.account_code in ('2221001020', '2221001023','2221001024','2221001026')
and h.reversed_flag = 'N'
and h.internal_period_num<=to_number(${@end_period})
and h.internal_period_num>=to_number(${@start_period})
(select pp.division from prj_project pp where pp.wfl_instance_id=t1.instance_id) as division,
(select cc.division from csh_payment_req_hd crh,con_contract cc where crh.contract_id=cc.contract_id and crh.wfl_instance_id=t1.instance_id) payment_division
(select pp.division from prj_project pp where pp.wfl_instance_id=t1.instance_id) as division,
(select cc.division from csh_payment_req_hd crh,con_contract cc where crh.contract_id=cc.contract_id and crh.wfl_instance_id=t1.instance_id) payment_division
(select pp.division from prj_project pp where pp.wfl_instance_id=t1.instance_id) division,
(select cc.division from csh_payment_req_hd crh,con_contract cc where crh.contract_id=cc.contract_id and crh.wfl_instance_id=t1.instance_id) payment_division
<a:model-querydefaultWhereClause="d.enabled_flag='Y' and nvl(d.display_flag,'N')!='N'"fetchAll="true"model="hls.HLS500.hls_fin_calc_config_ln"rootPath="calc_config_ln_path"/>
<a:model-querydefaultWhereClause="d.enabled_flag='Y' and nvl(d.display_flag,'N')!='N'"fetchAll="true"model="cont.CON_REPO001.hls_fin_calc_config_ln"rootPath="calc_config_ln_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='Y' or (t.display_flag='C' and exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="hls.HLS500N.hls_fin_calc_config_hd_n"rootPath="calc_config_hd_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='N' or (t.display_flag='C' and not exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="hls.HLS500N.hls_fin_calc_config_hd_n"rootPath="temp_config_hd_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='Y' or (t.display_flag='C' and exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="cont.CON_REPO001.hls_fin_calc_config_hd_n"rootPath="calc_config_hd_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='N' or (t.display_flag='C' and not exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="cont.CON_REPO001.hls_fin_calc_config_hd_n"rootPath="temp_config_hd_path"/>
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
<a:model-querydefaultWhereClause="d.enabled_flag='Y' and nvl(d.display_flag,'N')!='N'"fetchAll="true"model="hls.HLS500.hls_fin_calc_config_ln"rootPath="calc_config_ln_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='Y' or (t.display_flag='C' and exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="hls.HLS500N.hls_fin_calc_config_hd_n"rootPath="calc_config_hd_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='N' or (t.display_flag='C' and not exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="hls.HLS500N.hls_fin_calc_config_hd_n"rootPath="temp_config_hd_path"/>