Commit a926b536 authored by 陆正友's avatar 陆正友

付款申请 新增页面最大逾期天数固定值改为实时值

parent ef70784d
......@@ -37,7 +37,15 @@
from con_contract cc,hls_division hd
where cc.division= hd.division and cc.contract_id = hc.contract_id) con_business_type_n,
hc.rental_re_times,
nvl(hc.overdue_max_days,0) overdue_max_days,
nvl((select trunc(sysdate) - min(trunc(cc.due_date))
from con_contract_cashflow cc
where cc.contract_id = hc.contract_id
and cc.cf_item = 1
and cc.cf_direction = 'INFLOW'
and cc.cf_status = 'RELEASE'
and trunc(cc.due_date) < trunc(sysdate)
and cc.write_off_flag != 'FULL'),
0) overdue_max_days,
round(hc.comsn_rate*100,2)||'%' comsn_rate,
hc.comsn_amount,
(select sum(i.unearned_finance_income)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment