FROM ACR_INVOICE_CONTRACT_V t1, ACR_INVOICE_CONTRACT_CF_V t2
#WHERE_CLAUSE#
WHERE t2.due_date<sysdate
ORDER BY
t1.contract_id,
t2.times,
...
...
@@ -341,7 +341,6 @@
<bm:query-fieldname="bill_flag"
queryExpression="(${@bill_flag} = 'Y' and t1.billing_frequency in (${@times_bill_flag},${@mid_bill_flag},${@final_bill_flag},${@et_bill_flag}) )"/>
<bm:query-fieldname="all_contract_number"
queryExpression="(t1.contract_number in (Select regexp_substr( replace(replace(replace(${@all_contract_number},chr(32)),chr(10)),chr(13)), '[^,]+', 1, Level) From dual Connect By regexp_substr(replace(replace(replace(${@all_contract_number},chr(32)),chr(10)),chr(13)), '[^,]+', 1, Level) Is Not Null) )"/>
expression="t2.billing_status != 'FULL' and t2.cf_direction='INFLOW'"/>
<!-- <bm:data-filter enforceOperations="query"
<bm:data-filterenforceOperations="query"
expression="t2.contract_id = t1.contract_id AND t1.billing_status IN ('NOT', 'PARTIAL') AND t1.contract_status not in ('NEW','CANCEL') AND t2.cf_status = 'RELEASE'"/>