Commit a15c8563 authored by 18083's avatar 18083

Merge remote-tracking branch 'origin/develop' into develop

parents ecdc886e d0290e62
...@@ -24,14 +24,41 @@ ...@@ -24,14 +24,41 @@
to_char(due_amount, 'fm999,999,999,990.00') due_amount, to_char(due_amount, 'fm999,999,999,990.00') due_amount,
transaction_date, transaction_date,
write_off_date, write_off_date,
to_char(received_amount, 'fm999,999,999,990.00') received_amount, --to_char(received_amount, 'fm999,999,999,990.00') received_amount,
--modify by 18938 I-7256
to_char((case
when received_amount > 0 then
hlcm_query_entrance_pkg.get_due_amout(p_transaction_date => transaction_date,
p_times => times,
p_contract_id => contract_id,
p_received_amount_9 => received_amount_9,
p_due_amount => received_amount,
p_write_off_id => write_off_id,
p_field => 'received_amount')
else
received_amount
end), 'fm999,999,999,990.00') As received_amount,
to_char(unreceived_amount, 'fm999,999,999,990.00') unreceived_amount, to_char(unreceived_amount, 'fm999,999,999,990.00') unreceived_amount,
times_9, times_9,
to_char(due_amount_9, 'fm999,999,999,990.00') due_amount_9, to_char(due_amount_9, 'fm999,999,999,990.00') due_amount_9,
to_char(nvl(received_amount_9, 0), 'fm999,999,999,990.00') received_amount_9, --to_char(nvl(received_amount_9, 0), 'fm999,999,999,990.00') received_amount_9,
--modify by 18938 I-7256
to_char((case
when received_amount_9 > 0 then
hlcm_query_entrance_pkg.get_due_amout_new(p_transaction_date => transaction_date,
p_times => times,
p_contract_id => contract_id,
p_due_amount => received_amount_9,
p_write_off_id => write_off_id,
p_field => 'received_amount_9',
p_write_off_id_9 =>write_off_id_9)
else
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
t2.write_off_id write_off_id_9,
t1.contract_id, t1.contract_id,
t1.cashflow_id, t1.cashflow_id,
t1.write_off_id, t1.write_off_id,
...@@ -58,13 +85,15 @@ ...@@ -58,13 +85,15 @@
Where h.cf_item = ccc.cf_item) cf_item_n, Where h.cf_item = ccc.cf_item) cf_item_n,
ccc.times, ccc.times,
to_char(ccc.due_date, 'yyyy-mm-dd') due_date, to_char(ccc.due_date, 'yyyy-mm-dd') due_date,
(ccc.due_amount - --修改点1
nvl((Select Sum(tn.write_off_due_amount) ccc.due_amount due_amount,
From csh_write_off tn --(ccc.due_amount -
Where tn.cashflow_id = cwo.cashflow_id --nvl((Select Sum(tn.write_off_due_amount)
And tn.creation_date <= --From csh_write_off tn
cwo.creation_date), -- Where tn.cashflow_id = cwo.cashflow_id
0) + cwo.write_off_due_amount) As due_amount, -- And tn.creation_date <=
--cwo.creation_date),
--0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date, to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date,
to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date, to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date,
...@@ -175,6 +204,7 @@ ...@@ -175,6 +204,7 @@
And t1.cf_item = t2.cf_item (+) And t1.cf_item = t2.cf_item (+)
Union Union
Select Select
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,
nvl(t1.write_off_id, t2.write_off_id) write_off_id, nvl(t1.write_off_id, t2.write_off_id) write_off_id,
...@@ -297,13 +327,15 @@ ...@@ -297,13 +327,15 @@
Where h.cf_item = ccc.cf_item) cf_item_n, Where h.cf_item = ccc.cf_item) cf_item_n,
ccc.times, ccc.times,
to_char(ccc.due_date, 'yyyy-mm-dd') due_date, to_char(ccc.due_date, 'yyyy-mm-dd') due_date,
(ccc.due_amount - --修改点2
nvl((Select Sum(tn.write_off_due_amount) ccc.due_amount due_amount,
From csh_write_off tn --(ccc.due_amount -
Where tn.cashflow_id = cwo.cashflow_id --nvl((Select Sum(tn.write_off_due_amount)
And tn.creation_date <= --From csh_write_off tn
cwo.creation_date), --Where tn.cashflow_id = cwo.cashflow_id
0) + cwo.write_off_due_amount) As due_amount, -- And tn.creation_date <=
--cwo.creation_date),
--0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date, to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date,
to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date, to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date,
...@@ -417,6 +449,7 @@ ...@@ -417,6 +449,7 @@
And t1.cf_item (+) = t2.cf_item And t1.cf_item (+) = t2.cf_item
Union Union
Select Select
null write_off_id_9,
ccc.contract_id, ccc.contract_id,
ccc.cashflow_id, ccc.cashflow_id,
Null write_off_id, Null write_off_id,
...@@ -494,6 +527,7 @@ ...@@ -494,6 +527,7 @@
-1) -1)
Union Union
Select Select
null write_off_id_9,
Null contract_id, Null contract_id,
Null cashflow_id, Null cashflow_id,
Null write_off_id, Null write_off_id,
...@@ -510,7 +544,48 @@ ...@@ -510,7 +544,48 @@
Sum(due_amount_9) due_amount_9, Sum(due_amount_9) due_amount_9,
Sum(received_amount_9) received_amount_9, Sum(received_amount_9) received_amount_9,
Sum(unreceived_amount_9) unreceived_amount_9 Sum(unreceived_amount_9) unreceived_amount_9
From (Select From(Select
contract_id,
cashflow_id,
write_off_id,
cf_item,
cf_item_n,
times,
due_date,
due_amount,
transaction_date,
write_off_date,
--to_char(received_amount, 'fm999,999,999,990.00') received_amount,
--modify by 18938 I-7256
(case
when received_amount > 0 then
hlcm_query_entrance_pkg.get_due_amout(p_transaction_date => transaction_date,
p_times => times,
p_contract_id => contract_id,
p_received_amount_9 => received_amount_9,
p_due_amount => received_amount,
p_write_off_id => write_off_id,
p_field => 'received_amount')
else
received_amount
end) As received_amount,
unreceived_amount,
times_9,
due_amount_9,
--to_char(nvl(received_amount_9, 0), 'fm999,999,999,990.00') received_amount_9,
--modify by 18938 I-7256
(case
when received_amount_9 > 0 then
hlcm_query_entrance_pkg.get_due_amout(p_transaction_date => transaction_date,
p_times => times,
p_contract_id => contract_id,
p_due_amount => received_amount_9,
p_write_off_id => write_off_id,
p_field => 'received_amount_9')
else
received_amount_9
end) As received_amount_9,
unreceived_amount_9 From (Select
t1.*, t1.*,
nvl(t2.times, t1.times) As times_9, nvl(t2.times, t1.times) As times_9,
nvl(t2.due_amount, 0) As due_amount_9, nvl(t2.due_amount, 0) As due_amount_9,
...@@ -526,14 +601,16 @@ ...@@ -526,14 +601,16 @@
Where h.cf_item = ccc.cf_item) cf_item_n, Where h.cf_item = ccc.cf_item) cf_item_n,
ccc.times, ccc.times,
to_char(ccc.due_date, 'yyyy-mm-dd') due_date, to_char(ccc.due_date, 'yyyy-mm-dd') due_date,
(ccc.due_amount - --修改点3
nvl((Select Sum(tn.write_off_due_amount) ccc.due_amount due_amount,
From csh_write_off tn --(ccc.due_amount -
Where tn.cashflow_id = --nvl((Select Sum(tn.write_off_due_amount)
cwo.cashflow_id --From csh_write_off tn
And tn.creation_date <= --Where tn.cashflow_id =
cwo.creation_date), --cwo.cashflow_id
0) + cwo.write_off_due_amount) As due_amount, --And tn.creation_date <=
--cwo.creation_date),
--0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date, to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date,
to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date, to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date,
...@@ -780,14 +857,16 @@ ...@@ -780,14 +857,16 @@
Where h.cf_item = ccc.cf_item) cf_item_n, Where h.cf_item = ccc.cf_item) cf_item_n,
ccc.times, ccc.times,
to_char(ccc.due_date, 'yyyy-mm-dd') due_date, to_char(ccc.due_date, 'yyyy-mm-dd') due_date,
(ccc.due_amount - --修改点4
nvl((Select Sum(tn.write_off_due_amount) ccc.due_amount due_amount,
From csh_write_off tn --(ccc.due_amount -
Where tn.cashflow_id = --nvl((Select Sum(tn.write_off_due_amount)
cwo.cashflow_id --From csh_write_off tn
And tn.creation_date <= --Where tn.cashflow_id =
cwo.creation_date), --cwo.cashflow_id
0) + cwo.write_off_due_amount) As due_amount, --And tn.creation_date <=
--cwo.creation_date),
--0) + cwo.write_off_due_amount) As due_amount,
--收款日 --收款日
to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date, to_char(t.transaction_date, 'yyyy-mm-dd') transaction_date,
to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date, to_char(cwo.write_off_date, 'yyyy-mm-dd') write_off_date,
...@@ -993,7 +1072,7 @@ ...@@ -993,7 +1072,7 @@
Where cc2.contract_id = ccc.contract_id Where cc2.contract_id = ccc.contract_id
And cc2.cf_item != 0 And cc2.cf_item != 0
And nvl(cc2.received_amount, 0) != 0), And nvl(cc2.received_amount, 0) != 0),
-1))) -1))))
Order By times, Order By times,
--cf_item, --cf_item,
--due_amount Desc, --due_amount Desc,
......
...@@ -270,6 +270,7 @@ ...@@ -270,6 +270,7 @@
height: 400 height: 400
}); });
win.on('close', function() { win.on('close', function() {
hls536_journal_query();
}); });
} }
...@@ -387,7 +388,7 @@ ...@@ -387,7 +388,7 @@
<a:column name="je_detail_count" prompt="凭证行数量" width="50"/> <a:column name="je_detail_count" prompt="凭证行数量" width="50"/>
<a:column name="wfl_status_n" prompt="凭证导入状态" width="100"/> <a:column name="wfl_status_n" prompt="凭证导入状态" width="100"/>
<a:column name="reverse_wfl_status_n" prompt="凭证反冲状态" width="100"/> <a:column name="reverse_wfl_status_n" prompt="凭证反冲状态" width="100"/>
<a:column name="attachment_file" prompt="附件" width="120" renderer="receipt_attachment_upload" align="center"/>- <a:column name="attachment_file" prompt="附件" width="120" renderer="receipt_attachment_upload" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<a:view> <a:view>
<a:link id="hls_journal_import_create_link_id" url="${/request/@context_path}/modules/hls/HLS536/hls_journal_import_create.lview"/> <a:link id="hls_journal_import_create_link_id" url="${/request/@context_path}/modules/hls/HLS536/hls_journal_import_create.lview"/>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="journal_attachment_uploadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<a:screen-include screen="modules/hls/hls_common_javascript.lview"/> <a:screen-include screen="modules/hls/hls_common_javascript.lview"/>
...@@ -54,6 +55,24 @@ ...@@ -54,6 +55,24 @@
return '<a href="javascript:hls536_link_dynamic(' + record.id + ',' + record.get('journal_header_id') + ');">' + value + '</a>'; return '<a href="javascript:hls536_link_dynamic(' + record.id + ',' + record.get('journal_header_id') + ');">' + value + '</a>';
} }
function receipt_attachment_upload(val,rec,name){
return '<a href=javascript:open_upload_window('+rec.get('journal_header_id')+')>附件</a>';
}
function open_upload_window(record_id){
var url = $('journal_attachment_uploadFile_id').getUrl() + '?table_name=HLS_JOURNAL_HEADER_IMP&header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'attachment_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function() {
hls536_journal_query();
});
}
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:dataSets> <a:dataSets>
...@@ -162,6 +181,8 @@ ...@@ -162,6 +181,8 @@
<a:column name="description" prompt="凭证摘要" width="220"/> <a:column name="description" prompt="凭证摘要" width="220"/>
<a:column name="je_detail_count" prompt="凭证行数量" width="50"/> <a:column name="je_detail_count" prompt="凭证行数量" width="50"/>
<a:column name="wfl_status_n" prompt="凭证导入状态" width="100"/> <a:column name="wfl_status_n" prompt="凭证导入状态" width="100"/>
<a:column name="reverse_wfl_status_n" prompt="凭证反冲状态" width="100"/>
<a:column name="attachment_file" prompt="附件" width="120" renderer="receipt_attachment_upload" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
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