Commit 73ec060d authored by 38823's avatar 38823

销项发票问题修复

parent b4a13a95
...@@ -19,9 +19,9 @@ redis.db=10 ...@@ -19,9 +19,9 @@ redis.db=10
db.type=oracle db.type=oracle
db.driverClassName=oracle.jdbc.driver.OracleDriver db.driverClassName=oracle.jdbc.driver.OracleDriver
db.url=jdbc:oracle:thin:@10.200.17.70:1521/HLS.orcl db.url=jdbc:oracle:thin:@10.200.17.180:1521/HLCMTEST
db.username=hl_cm_dev db.username=hl_cm_dev_2023
db.password=hl_cm_dev db.password=hl_cm_dev_2023
db.maxPoolSize=100 db.maxPoolSize=100
db.minIdle=10 db.minIdle=10
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
SELECT * SELECT *
FROM (SELECT t1.invoice_hd_id, FROM (SELECT t1.invoice_hd_id,
t1.description,
t1.document_number, t1.document_number,
TO_CHAR(t1.invoice_date, 'yyyy-mm-dd') AS invoice_date, TO_CHAR(t1.invoice_date, 'yyyy-mm-dd') AS invoice_date,
t1.document_category, t1.document_category,
......
...@@ -57,18 +57,29 @@ ...@@ -57,18 +57,29 @@
From con_contract_cashflow t From con_contract_cashflow t
Where t.cashflow_id = al.cashflow_id)) times, Where t.cashflow_id = al.cashflow_id)) times,
(Select to_char(h.journal_date, 'yyyy-mm') nvl((Select to_char(h.journal_date, 'yyyy-mm')
From hls_journal_header h, hls_journal_detail l From hls_journal_header h,
Where h.journal_header_id = l.journal_header_id hls_journal_detail l
And ((l.cashflow_id = al.cashflow_id Where h.journal_header_id =
and al.cf_item<>9) or (al.ref_n04=l.journal_line_id and al.cf_item=9)) l.journal_header_id
And rownum = 1) journal_month, And ((l.cashflow_id = al.cashflow_id and
(Select h.sbo_num al.cf_item <> 9) or
From hls_journal_header h, hls_journal_detail l (al.ref_n04 = l.journal_line_id and
Where h.journal_header_id = l.journal_header_id al.cf_item = 9))
And ((l.cashflow_id = al.cashflow_id And rownum = 1),
and al.cf_item<>9) or (al.ref_n04=l.journal_line_id and al.cf_item=9)) (select to_char(t.invoice_date, 'yyyy-mm')
And rownum = 1) journal_num, from acr_invoice_hd t
where t.invoice_hd_id = ah.invoice_hd_id)) journal_month,
(Select h.sbo_num
From hls_journal_header h,
hls_journal_detail l
Where h.journal_header_id =
l.journal_header_id
And ((l.cashflow_id = al.cashflow_id and
al.cf_item <> 9) or
(al.ref_n04 = l.journal_line_id and
al.cf_item = 9))
And rownum = 1) journal_num,
al.tax_type_rate, al.tax_type_rate,
al.total_amount, al.total_amount,
...@@ -164,6 +175,7 @@ ...@@ -164,6 +175,7 @@
<bm:query-fields> <bm:query-fields>
<bm:query-field name="contract_number" queryExpression="t1.contract_number = ${@contract_number}"/> <bm:query-field name="contract_number" queryExpression="t1.contract_number = ${@contract_number}"/>
<bm:query-field name="pur_contract_number" queryExpression="t1.pur_contract_number = ${@pur_contract_number}"/> <bm:query-field name="pur_contract_number" queryExpression="t1.pur_contract_number = ${@pur_contract_number}"/>
<bm:query-field name="pur_number" queryExpression="t1.pur_number = ${@pur_number}"/>
<bm:query-field name="bp_code" queryExpression="t1.bp_code = ${@bp_code}"/> <bm:query-field name="bp_code" queryExpression="t1.bp_code = ${@bp_code}"/>
<bm:query-field name="journal_month" queryExpression="t1.journal_month = ${@journal_month}"/> <bm:query-field name="journal_month" queryExpression="t1.journal_month = ${@journal_month}"/>
<bm:query-field name="paid_byother_flag_n" queryExpression="t1.paid_byother_flag = ${@paid_byother_flag}"/> <bm:query-field name="paid_byother_flag_n" queryExpression="t1.paid_byother_flag = ${@paid_byother_flag}"/>
......
...@@ -384,11 +384,17 @@ ...@@ -384,11 +384,17 @@
} }
function acr512_op_invoice_insert() { function acr512_op_invoice_insert() {
debugger;
var records = $('acr512_invoice_op_result_ds').getSelected(); var records = $('acr512_invoice_op_result_ds').getSelected();
var description = records[0].data.description.length;
if (records.length < 1) { if (records.length < 1) {
Leaf.showMessage('${l:HLS.PROMPT}', '请选择需要审批的发票!'); Leaf.showMessage('${l:HLS.PROMPT}', '请选择需要审批的发票!');
return; return;
} }
if(description > 230){
Leaf.showMessage('${l:HLS.PROMPT}', '单据编号为'+records[0].data.document_number+'的发票说明字段超出230个字符,请调整!');
return;
}
var datas = {}; var datas = {};
var saveData = []; var saveData = [];
var invoice_hd_ids = ''; var invoice_hd_ids = '';
......
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