Commit 6a104035 authored by TIANZHI.HU's avatar TIANZHI.HU

对账单打印bug修复 add by 39135 HuTianzhi

parent 5197afb3
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
end), 'fm999,999,999,990.00') As received_amount_9, end), 'fm999,999,999,990.00') As received_amount_9,
to_char(unreceived_amount_9, 'fm999,999,999,990.00') unreceived_amount_9 to_char(unreceived_amount_9, 'fm999,999,999,990.00') unreceived_amount_9
From (Select * From (Select *
From (Select From (select a.* from (Select
t2.write_off_id write_off_id_9, t2.write_off_id write_off_id_9,
t1.contract_id, t1.contract_id,
t1.cashflow_id, t1.cashflow_id,
...@@ -205,9 +205,16 @@ ...@@ -205,9 +205,16 @@
cwo.write_off_id) t2 cwo.write_off_id) t2
Where t1.transaction_date = t2.transaction_date (+) Where t1.transaction_date = t2.transaction_date (+)
And t1.times = t2.times (+) And t1.times = t2.times (+)
And t1.cf_item = t2.cf_item (+) And t1.cf_item = t2.cf_item (+)) a
where hlcm_query_entrance_pkg.get_due_amout(p_transaction_date => a.transaction_date,
p_times => a.times,
p_contract_id => a.contract_id,
p_received_amount_9 => a.received_amount_9,
p_due_amount => a.received_amount,
p_write_off_id => a.write_off_id,
p_field => 'received_amount')>0
Union Union
Select select a.* from(Select
t2.write_off_id write_off_id_9, t2.write_off_id write_off_id_9,
nvl(t1.contract_id, t2.contract_id) contract_id, nvl(t1.contract_id, t2.contract_id) contract_id,
nvl(t1.cashflow_id, t2.cashflow_id) cashflow_id, nvl(t1.cashflow_id, t2.cashflow_id) cashflow_id,
...@@ -454,7 +461,14 @@ ...@@ -454,7 +461,14 @@
cwo.write_off_id) t2 cwo.write_off_id) t2
Where t1.transaction_date (+) = t2.transaction_date Where t1.transaction_date (+) = t2.transaction_date
And t1.times (+) = t2.times And t1.times (+) = t2.times
And t1.cf_item (+) = t2.cf_item And t1.cf_item (+) = t2.cf_item) a where
hlcm_query_entrance_pkg.get_due_amout(p_transaction_date => a.transaction_date,
p_times => a.times,
p_contract_id => a.contract_id,
p_received_amount_9 => a.received_amount_9,
p_due_amount => a.received_amount,
p_write_off_id => a.write_off_id,
p_field => 'received_amount')>0
Union Union
Select Select
null write_off_id_9, null write_off_id_9,
...@@ -1091,7 +1105,8 @@ ...@@ -1091,7 +1105,8 @@
--cf_item, --cf_item,
--due_amount Desc, --due_amount Desc,
transaction_date, transaction_date,
write_off_date) write_off_date,
write_off_id)
</select> </select>
......
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