<!--<bm:field name="bp_vender" expression="(select bp_name from hls_bp_master where bp_id=t1.bp_id_vender and enabled_flag='Y')" forInsert="false" forUpdate="false"/>-->
<!--<bm:field name="bp_vender" expression="(select bp_name from hls_bp_master where bp_id=t1.bp_id_vender and enabled_flag='Y')" forInsert="false" forUpdate="false"/>-->
<bm:fieldname="lease_organization_desc"expression="(select description from hls_lease_organization where lease_organization = t1.lease_organization)"forInsert="false"forUpdate="false"/>
<bm:fieldname="lease_organization_desc"expression="(select description from hls_lease_organization where lease_organization = t1.lease_organization)"forInsert="false"forUpdate="false"/>
<!--<bm:field name="owner_user_id_n" expression="(select description from sys_user where user_id = t1.created_by)" forInsert="false" forUpdate="false"/>-->
<!--<bm:field name="owner_user_id_n" expression="(select description from sys_user where user_id = t1.created_by)" forInsert="false" forUpdate="false"/>-->
<bm:fieldname="is_terminate"expression="(CASE WHEN ((select sum(ccc.due_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item=1 AND ccc.cf_status<>'BLOCK') - (select sum(ccc.received_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item=1 AND ccc.cf_status<>'BLOCK')) = 0 THEN '是' ELSE '否' END)"forInsert="false"forUpdate="false"/>
<bm:fieldname="is_terminate"expression="(CASE WHEN ((select sum(ccc.due_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id AND ccc.cf_status<>'BLOCK' and ccc.cf_item<>0) - (select sum(ccc.received_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id AND ccc.cf_status<>'BLOCK')) = 0 THEN '是' ELSE '否' END)"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_total"expression="(select sum(ccc.due_amount) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and ccc.cf_item=1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_principal"expression="(select sum(nvl(ccc.principal,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK')"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_interest"expression="(select sum(nvl(ccc.interest,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and cf_item=1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_received_interest"expression="(select sum(nvl(ccc.received_interest,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and cf_item=1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_received_penalty"expression="(nvl((select sum(nvl(ccc.received_amount,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and ccc.cf_item=9),0))"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_id_agent_desc"/>
<bm:fieldname="bp_id_agent_desc"/>
<bm:fieldname="business_type_n"/>
<bm:fieldname="business_type_n"/>
<bm:fieldname="division_n"/>
<bm:fieldname="division_n"/>
...
@@ -73,7 +78,7 @@
...
@@ -73,7 +78,7 @@
<bm:query-fieldfield="bp_id_agent_desc"queryExpression="bp_id_agent_desc like upper('%'||${@bp_id_agent_desc}||'%')"/>
<bm:query-fieldfield="bp_id_agent_desc"queryExpression="bp_id_agent_desc like upper('%'||${@bp_id_agent_desc}||'%')"/>
</bm:query-fields>
</bm:query-fields>
<bm:data-filters>
<bm:data-filters>
<bm:fieldname="is_terminate"expression="((select sum(ccc.due_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item = 1 AND ccc.cf_status<>'BLOCK') - (select sum(ccc.received_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item = 1 AND ccc.cf_status<>'BLOCK')) = 0"/>
<bm:fieldname="is_terminate"expression="(SELECT ccc.write_off_flag from con_contract_cashflow ccc WHERE ccc.contract_id=t1.contract_id AND ccc.cf_item=8 AND ccc.cf_status='RELEASE')='FULL'"/>
<bm:data-filterenforceOperations="query"expression="t1.contract_status in ('INCEPT','ETING','REPURING','TERMINATING') "/>
<bm:data-filterenforceOperations="query"expression="t1.contract_status in ('INCEPT','ETING','REPURING','TERMINATING') "/>
<!--<bm:field name="bp_vender" expression="(select bp_name from hls_bp_master where bp_id=t1.bp_id_vender and enabled_flag='Y')" forInsert="false" forUpdate="false"/>-->
<!--<bm:field name="bp_vender" expression="(select bp_name from hls_bp_master where bp_id=t1.bp_id_vender and enabled_flag='Y')" forInsert="false" forUpdate="false"/>-->
<bm:fieldname="lease_organization_desc"expression="(select description from hls_lease_organization where lease_organization = t1.lease_organization)"forInsert="false"forUpdate="false"/>
<bm:fieldname="lease_organization_desc"expression="(select description from hls_lease_organization where lease_organization = t1.lease_organization)"forInsert="false"forUpdate="false"/>
<!--<bm:field name="owner_user_id_n" expression="(select description from sys_user where user_id = t1.created_by)" forInsert="false" forUpdate="false"/>-->
<!--<bm:field name="owner_user_id_n" expression="(select description from sys_user where user_id = t1.created_by)" forInsert="false" forUpdate="false"/>-->
<bm:fieldname="is_terminate"expression="(CASE WHEN ((select sum(ccc.due_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item=1) - (select sum(ccc.received_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item=1)) = 0 THEN '是' ELSE '否' END)"forInsert="false"forUpdate="false"/>
<bm:fieldname="is_terminate"expression="(CASE WHEN ((select sum(ccc.due_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id AND ccc.cf_status<>'BLOCK' and ccc.cf_item<>0) - (select sum(ccc.received_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id AND ccc.cf_status<>'BLOCK')) = 0 THEN '是' ELSE '否' END)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_id_agent_desc"/>
<bm:fieldname="bp_id_agent_desc"/>
<bm:fieldname="business_type_n"/>
<bm:fieldname="business_type_n"/>
<bm:fieldname="division_n"/>
<bm:fieldname="division_n"/>
<bm:fieldname="amount_total"expression="(select sum(ccc.due_amount) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and ccc.cf_item=1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_principal"expression="(select sum(nvl(ccc.principal,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK')"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_interest"expression="(select sum(nvl(ccc.interest,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and cf_item=1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_received_interest"expression="(select sum(nvl(ccc.received_interest,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and cf_item=1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="amount_received_penalty"expression="(nvl((select sum(nvl(ccc.received_amount,0)) from con_contract_cashflow ccc where ccc.contract_id=t1.contract_id and ccc.cf_status<>'BLOCK' and ccc.cf_item=9),0))"forInsert="false"forUpdate="false"/>
</bm:fields>
</bm:fields>
<bm:features>
<bm:features>
<f:standard-who/>
<f:standard-who/>
...
@@ -59,7 +64,7 @@
...
@@ -59,7 +64,7 @@
<bm:query-fieldfield="bp_id_agent_desc"queryExpression="bp_id_agent_desc like upper('%'||${@bp_id_agent_desc}||'%')"/>
<bm:query-fieldfield="bp_id_agent_desc"queryExpression="bp_id_agent_desc like upper('%'||${@bp_id_agent_desc}||'%')"/>
</bm:query-fields>
</bm:query-fields>
<bm:data-filters>
<bm:data-filters>
<bm:fieldname="is_terminate"expression="((select sum(ccc.due_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item = 1) - (select sum(ccc.received_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item = 1)) = 0"/>
<!-- <bm:field name="is_terminate" expression="((select sum(ccc.due_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item = 1) - (select sum(ccc.received_amount) from con_contract_cashflow ccc where contract_id = t1.contract_id and cf_item = 1)) = 0"/>-->
<!-- <bm:data-filter enforceOperations="query" expression="t1.contract_status in ('INCEPT','ETING','ADING') "/>-->
<!-- <bm:data-filter enforceOperations="query" expression="t1.contract_status in ('INCEPT','ETING','ADING') "/>-->