<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="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="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 @@
or (decode(${/session/@user_id}, 10600, 1, 2) = 2) )"/>
</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)))"/>
<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)))"/>