<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)"/>
<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'))"/>