<bm:query-fieldfield="bp_id_agent_desc"queryExpression="bp_id_agent_desc like upper('%'||${@bp_id_agent_desc}||'%')"/>
</bm:query-fields>
<bm:data-filters>
<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:fieldname="is_terminate"expression="((t1.contract_status not in('REPURING') and (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')or(t1.contract_status='REPURING'))"/>
<bm:data-filterenforceOperations="query"expression="t1.contract_status in ('INCEPT','ETING','REPURING','TERMINATING') "/>
<!-- <bm:data-filter enforceOperations="query" expression=" not exists (select 1 from con_contract_cashflow ccw where ccw.contract_id = t1.contract_id and ccw.cf_item=1 and ccw.cf_status='RELEASE' and nvl(ccw.output_tax_create_je_flag,'N')='N')"/>-->
<bm:data-filterenforceOperations="query"expression=" not exists (select 1 from con_contract_cashflow ccw , con_unearned_finance_income cf where ccw.contract_id = t1.contract_id and ccw.cf_item=1 and cf.cashflow_id(+)=ccw.cashflow_id and ccw.cf_status='RELEASE' and nvl(cf.create_je_flag,'N')='N' and nvl(ccw.output_tax_create_je_flag,'N')='N')"/>
<!--<bm:data-filter enforceOperations="query" expression=" NOT EXISTS (SELECT 1 FROM con_contract_cashflow WHERE contract_id = t1.contract_id AND cf_item IN (1,8,52) AND (write_off_flag IN ('PARTIAL', 'NOT') OR received_amount != due_amount))"/>-->
<!--<bm:data-filter enforceOperations="query" expression="exists (select 1 from con_contract where contract_id = t1.contract_id and created_by = ${/session/@user_id})"/>-->