<bm:data-filtername="query"expression="(t1.bp_category in ('TENANT','AGENT') or exists(select 1 from hls_bp_master_role br where br.bp_id = t1.bp_id and br.enabled_flag = 'Y' and br.bp_category in('TENANT','AGENT') and br.bp_type in('TENANT','AGENT')))"/>
<bm:data-filtername="query"expression="(t1.bp_category in ('TENANT','AGENT') or exists(select 1 from hls_bp_master_role br where br.bp_id = t1.bp_id and br.enabled_flag = 'Y' and br.bp_category in('TENANT','AGENT','RENTER','MAN_FACTURER') and br.bp_type in('TENANT','AGENT','RENTER','MAN_FACTURER')))"/>
<bm:data-filtername="query"expression="(exists (select 1 from con_contract_bp bp, con_contract cc where bp.contract_id = cc.contract_id and bp.bp_id = t1.bp_id and cc.data_class = 'NORMAL' ))"/>
<bm:data-filtername="query"expression="(exists (select 1 from con_contract_bp bp, con_contract cc where bp.contract_id = cc.contract_id and bp.bp_id = t1.bp_id and cc.data_class = 'NORMAL' ))"/>
<bm:query-fieldname="reverse_detail_flag"queryExpression="((nvl(${@deposit_type},'N')='Y' and t1.write_off_type='DEPOSIT_CREDIT')or(${@reverse_detail_flag}='Y' and nvl(${@deposit_type},'N') in('N',null) and t1.write_off_type in ('RECEIPT_CREDIT','RECEIPT_ADVANCE_RECEIPT','ADVANCE_RECEIPT_CREDIT','DEPOSIT','RISK','DEPOSIT_CUS','RECEIPT_NONBUSINESS','RECEIPT_DEPOSIT_POOL')))"/>
<bm:query-fieldname="reverse_detail_flag"queryExpression="((nvl(${@deposit_type},'N')='Y' and t1.write_off_type='DEPOSIT_CREDIT')or(${@reverse_detail_flag}='Y' and nvl(${@deposit_type},'N') in('N',null) and t1.write_off_type in ('RECEIPT_CREDIT','RECEIPT_ADVANCE_RECEIPT','ADVANCE_RECEIPT_CREDIT','DEPOSIT','RISK','DEPOSIT_CUS','RECEIPT_NONBUSINESS','RECEIPT_DEPOSIT_POOL','OPERAT_COMBINED')))"/>
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:data-filtername="query"expression="not exists(select 1 from csh_transaction ct where ct.transaction_id =t1.transaction_id and ct.deposit_trans_type in('vender_deposit'))"/>
<bm:data-filtername="query"expression="not exists(select 1 from csh_transaction ct where ct.transaction_id =t1.transaction_id and ct.deposit_trans_type in('vender_deposit'))"/>