<bm:fieldname="bp_code"expression="(select d.bp_code from hls_bp_master_v d where d.bp_id=t1.bp_id)"forInsert="false"forUpdate="false"prompt="HLS.BP_CODE"/>
<bm:fieldname="bp_name"expression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id)"forInsert="false"forUpdate="false"prompt="HLS.BP_NAME"/>
<bm:fieldname="unit_id"expression="(select d.unit_id from hls_bp_master d where d.bp_id=t1.bp_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="payment_method_display"expression="(select cp.description from csh_payment_method cp where cp.payment_method_id=t1.payment_method_id)"forInsert="false"forUpdate="false"prompt="HLS.PAYMENT_METHOD"/>
<bm:fieldname="currency_name"expression="(select gc.currency_name from gld_currency_vl gc where gc.currency_code=t1.currency_code)"forInsert="false"forUpdate="false"prompt="HLS.CURRENCY"/>
<bm:fieldname="bp_category_display"expression="(select b.description from hls_bp_category b where b.bp_category=t1.bp_category)"forInsert="false"forUpdate="false"prompt="CSH511.CSH_TRANSACTION.BP_CATEGORY"/>
...
...
@@ -117,6 +118,13 @@
<bm:data-filtername="query"expression="(t1.ref_contract_id is not null)"/>
<bm:data-filtername="query"expression="(t1.source_type is not null)"/>
<bm:data-filtername="query"expression="(exists (
(select 1
from exp_emp_assign_e_v ee
where ee.user_id = ${/session/@user_id}
and ee.unit_id=(SELECT h.unit_id FROM hls_bp_master h WHERE h.bp_id=t1.bp_id)
and ${/session/@role_id} in (select v.role_id from sys_role_vl v where v.role_code in ('0018','0019')) ) )
or (${/session/@role_id} not in (select v.role_id from sys_role_vl v where v.role_code in ('0018','0019')) ))"/>
</bm:data-filters>
<bm:query-fields>
<bm:query-fieldname="query_amount_flag"queryExpression="((${@query_amount_flag}='1' and ((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >0) )or(${@query_amount_flag}='2' and ((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) =0) )or (${@query_amount_flag}='3' and ((nvl(t1.transaction_amount,0)-nvl(t1.write_off_amount,0)-nvl(t1.returned_amount,0)) >=0)))"/>