<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')))"/>
<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')))"/>
queryExpression="(t.bp_id_tenant = ${@bp_id} or t.bp_id_agent_level1 = ${@bp_id} or ((select bp_category from hls_bp_master where bp_id = ${@bp_id}) = 'VENDER'))"/>-->
queryExpression="(t.bp_id_tenant = ${@bp_id} or t.bp_id_agent_level1 = ${@bp_id} or ((select bp_category from hls_bp_master where bp_id = ${@bp_id}) = 'VENDER'))"/>-->
<bm:query-fieldname="bp_id"queryExpression="(Exists (Select 1 From (Select h.bp_id From hls_bp_master h Where h.bp_name = (Select hbm.bp_name From hls_bp_master hbm Where hbm.bp_id = ${@bp_id})) t1 Where t1.bp_id = t.bp_id_tenant) Or Exists
<bm:fieldname="rate_method_code"expression="(select t.rate_method_code from gld_exchangerate_types t where t.type_code=t1.exchange_rate_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="rate_method_code"expression="(select t.rate_method_code from gld_exchangerate_types t where t.type_code=t1.exchange_rate_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="zero_amounts_allowed"expression="(select d.zero_amounts_allowed from csh_bank_account_v d where d.bank_account_id=t1.bank_account_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="zero_amounts_allowed"expression="(select d.zero_amounts_allowed from csh_bank_account_v d where d.bank_account_id=t1.bank_account_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="unwrite_off_amount"expression="(t1.transaction_amount-nvl((select sum(cw.write_off_due_amount) from csh_write_off cw where cw.csh_transaction_id=t1.transaction_id and cw.reversed_flag='N' and cw.write_off_date <=nvl(to_date(${@write_off_date_to},'yyyy-mm-dd'),sysdate) ),0))"forInsert="false"forUpdate="false"prompt="HLS.UNWRITEOFF_AMOUNT"/>
<bm:fieldname="precision"expression="(select g.precision from gld_currency g where g.currency_code =t1.currency_code)"forInsert="false"forUpdate="false"/>
<bm:fieldname="precision"expression="(select g.precision from gld_currency g where g.currency_code =t1.currency_code)"forInsert="false"forUpdate="false"/>
<bm:fieldname="user_desc"expression="(select su.description from sys_user su where su.user_id=t1.created_by)"forInsert="false"forUpdate="false"/>
<bm:fieldname="user_desc"expression="(select su.description from sys_user su where su.user_id=t1.created_by)"forInsert="false"forUpdate="false"/>
...
@@ -132,7 +133,7 @@
...
@@ -132,7 +133,7 @@
or (decode(${/session/@user_id}, 10600, 1, 2) = 2) )"/>
or (decode(${/session/@user_id}, 10600, 1, 2) = 2) )"/>
</bm:data-filters>
</bm:data-filters>
<bm:query-fields>
<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)))"/>
<bm:query-fieldname="query_amount_flag"queryExpression="((${@query_amount_flag}='1' and ((t1.transaction_amount-nvl((select sum(cw.write_off_due_amount) from csh_write_off cw where cw.csh_transaction_id=t1.transaction_id and cw.reversed_flag='N' and cw.write_off_date <=nvl(to_date(${@write_off_date_to},'yyyy-mm-dd'),sysdate) ),0))>0) )or(${@query_amount_flag}='2' and ( (t1.transaction_amount-nvl((select sum(cw.write_off_due_amount) from csh_write_off cw where cw.csh_transaction_id=t1.transaction_id and cw.reversed_flag='N' and cw.write_off_date <=nvl(to_date(${@write_off_date_to},'yyyy-mm-dd'),sysdate) ),0))=0) )or (${@query_amount_flag}='3' and ( (t1.transaction_amount-nvl((select sum(cw.write_off_due_amount) from csh_write_off cw where cw.csh_transaction_id=t1.transaction_id and cw.reversed_flag='N' and cw.write_off_date <=nvl(to_date(${@write_off_date_to},'yyyy-mm-dd'),sysdate) ),0))>=0)))"/>
<a:model-querydefaultWhereClause="v.role_id = ${/session/@role_id} and v.role_code in ('HAND','0017')"model="zjwfl.sys_role_flag"rootPath="role_flag_path"/>
<a:model-querydefaultWhereClause="v.role_id = ${/session/@role_id} and v.role_code in ('HAND','0017')"model="zjwfl.sys_role_flag"rootPath="role_flag_path"/>