Commit 802cc549 authored by liyuan.chen's avatar liyuan.chen

对账单针对回购合同修改

parent bdb19a8a
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -377,7 +377,7 @@ ...@@ -377,7 +377,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
nvl((Select Sum(tn.write_off_due_amount) nvl((Select Sum(tn.write_off_due_amount)
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = cwo.cashflow_id Where tn.cashflow_id = cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -531,7 +531,7 @@ ...@@ -531,7 +531,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -544,7 +544,7 @@ ...@@ -544,7 +544,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -609,7 +609,7 @@ ...@@ -609,7 +609,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -622,7 +622,7 @@ ...@@ -622,7 +622,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -785,7 +785,7 @@ ...@@ -785,7 +785,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -798,7 +798,7 @@ ...@@ -798,7 +798,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -866,7 +866,7 @@ ...@@ -866,7 +866,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0) + cwo.write_off_due_amount) As due_amount, 0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
...@@ -879,7 +879,7 @@ ...@@ -879,7 +879,7 @@
From csh_write_off tn From csh_write_off tn
Where tn.cashflow_id = Where tn.cashflow_id =
cwo.cashflow_id cwo.cashflow_id
And tn.creation_date <= And tn.creation_date &lt;=
cwo.creation_date), cwo.creation_date),
0)) As unreceived_amount 0)) As unreceived_amount
From con_contract_cashflow ccc, From con_contract_cashflow ccc,
...@@ -1011,7 +1011,7 @@ ...@@ -1011,7 +1011,7 @@
(Select cl.machine_number (Select cl.machine_number
From con_contract_lease_item cl From con_contract_lease_item cl
Where cl.contract_id = c.contract_id) As machine_number, Where cl.contract_id = c.contract_id) As machine_number,
to_char(Sysdate, &apos;yyyy"年"mm"月"dd"日"&apos;) As today to_char(Sysdate, 'yyyy"年"mm"月"dd"日"') As today
From con_contract c, hls_bp_master hb From con_contract c, hls_bp_master hb
Where c.bp_id_tenant = hb.bp_id Where c.bp_id_tenant = hb.bp_id
and c.contract_id = #{contractId} and c.contract_id = #{contractId}
......
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