Commit 71ddea0f authored by TIANZHI.HU's avatar TIANZHI.HU

付款申请抵扣回购金分摊--回购租金剩余金额 去除被冻结的现金流 add by 39135 HuTianzhi

parent 7d32e252
...@@ -207,8 +207,8 @@ ...@@ -207,8 +207,8 @@
and pq.document_category = 'PROJECT')) other_payment2, and pq.document_category = 'PROJECT')) other_payment2,
i.pattern, i.pattern,
i.machine_number, i.machine_number,
nvl((select sum(due_amount-nvl(received_amount,0)) from con_contract_cashflow where contract_id=t.repur_contract_id and cf_item=250),0)repur_con_amt, nvl((select sum(due_amount-nvl(received_amount,0)) from con_contract_cashflow where contract_id=t.repur_contract_id and cf_item=250 and CF_STATUS != 'BLOCK'),0)repur_con_amt,
nvl((select sum(due_amount-nvl(received_amount,0)) from con_contract_cashflow where contract_id=t.repur_contract_id and cf_item=250),0)repur_con_ddct_amt, nvl((select sum(due_amount-nvl(received_amount,0)) from con_contract_cashflow where contract_id=t.repur_contract_id and cf_item=250 and CF_STATUS != 'BLOCK'),0)repur_con_ddct_amt,
nvl(t.entrusted_amount,0) entrusted_amount, nvl(t.entrusted_amount,0) entrusted_amount,
decode(t.business_type,'LEASEBACK',(f.due_amount-nvl((select to_number(hd.other_payment2) decode(t.business_type,'LEASEBACK',(f.due_amount-nvl((select to_number(hd.other_payment2)
from hls_fin_calculator_hd hd from hls_fin_calculator_hd hd
......
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