<bm:data-filtername="query"expression="(t1.company_id=${/session/@company_id} and t1.posted_flag='Y' and t1.reversed_flag='N' and write_off_flag<> 'FULL' and returned_flag <> 'FULL' and t1.transaction_type in ('RECEIPT','ADVANCE_RECEIPT') and (nvl(t1.returned_amount, 0)+nvl(t1.write_off_amount, 0)<t1.transaction_amount)) "/>
<bm:data-filtername="query"expression="(t1.company_id=${/session/@company_id} and t1.posted_flag='Y' and t1.reversed_flag='N' and write_off_flag<> 'FULL' and returned_flag not in ( 'FULL','RETURN') and t1.transaction_type in ('RECEIPT','ADVANCE_RECEIPT') and (nvl(t1.returned_amount, 0)+nvl(t1.write_off_amount, 0)<t1.transaction_amount)) "/>
<bm:data-filtername="query"expression="(t1.confirmed_flag='APPROVED' and t1.write_off_flag in('NOT','PARTIAL'))"/>