<bm:data-filtername="query"expression="(c.contract_id = ccc.contract_id AND c.data_class = 'NORMAL' AND ccc.write_off_flag != 'FULL' AND c.contract_status IN ('INCEPT') AND ccc.cf_status = 'RELEASE' AND ccc.cf_direction = 'INFLOW' AND c.pay_method IS NOT NULL AND ccc.cf_item IN (1, 8, 9))"/>
<bm:data-filtername="query"expression="(c.contract_id = ccc.contract_id AND c.data_class = 'NORMAL' AND ccc.write_off_flag != 'FULL' AND c.contract_status IN ('INCEPT') AND ccc.cf_status = 'RELEASE' AND ccc.cf_direction = 'INFLOW' AND c.pay_method IS NOT NULL and (nvl(c.is_include_pealty, 'Y') = 'Y' and ccc.cf_item in (1, 8, 9) or nvl(c.is_include_pealty, 'Y') = 'N' and ccc.cf_item in (1, 8)))"/>
due_amount) from con_contract_cashflow where cashflow_id = t1.write_off_cashflow_id)"/>
due_amount) from con_contract_cashflow where cashflow_id = t1.write_off_cashflow_id)"/>
<bm:fieldname="payment_deduction"expression="(select payment_deduction from con_contract c where c.contract_id = t1.contract_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="payment_deduction"expression="(select payment_deduction from con_contract c where c.contract_id = t1.contract_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="division"expression="(select division from con_contract c where c.contract_id = t1.contract_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="division"expression="(select division from con_contract c where c.contract_id = t1.contract_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="is_include_pealty"expression="(select nvl(c.is_include_pealty,'Y') from con_contract c where c.contract_id = t1.contract_id)"forInsert="false"forUpdate="false"/>
expression:"not exists (select 1 from con_contract_account_detail ccad where ccad.account_batch_id = t1.account_batch_id and not exists (select 1 from aut_trx_user_authorize a1, aut_owner_user_authorize a2 where a1.trx_category = 'CONTRACT' and a1.trx_id = ccad.contract_id and trunc(sysdate) between a1.start_date and nvl(a1.end_date, trunc(sysdate)) and a1.user_id = a2.owner_user_id and a1.trx_category = a2.trx_category and a2.authorized_user_id = 1 and trunc(sysdate) between a2.start_date and nvl(a2.end_date, trunc(sysdate))))"