Commit cd76f771 authored by TIANZHI.HU's avatar TIANZHI.HU

凭证导入工作流开发4 add by 39135 HuTianzhi

parent bc5e468d
......@@ -98,10 +98,11 @@
Leaf.showMessage('${l:PROMPT}', '未选择!');
return ;
}
//审批中、审批通过的单据不可提交审批
for (let i = 0; i < records.length; i++) {
var record = records[i];
if (record.get('wfl_status') === 'APPROVING' || record.get('wfl_status') !== 'APPROVED') {
if (record.get('wfl_status') == 'APPROVING' || record.get('wfl_status') == 'APPROVED') {
Leaf.showMessage('提示', '审批中、审批通过的凭证不可提交审批!');
return;
}
......@@ -181,7 +182,7 @@
param['url_title'] = '${l:HLS530.JOURNAL_LINE_MODIFY}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_journal_import_create_link_id');
}else if (record.get('wfl_status') == 'APPROVING' || record.get('wfl_status') == 'APPROVED'){
//var maintain_type = 'UPDATE';
var maintain_type = 'READONLY';
var param = record.data;
param['currency'] = param['currency_code'];
param['function_code'] = 'HLS536';
......@@ -189,7 +190,7 @@
param['document_category'] = 'JE';
param['function_usage'] = 'QUERY';
param['query_only'] = 'Y';
//param['maintain_type'] = maintain_type;
param['maintain_type'] = maintain_type;
param['url_title'] = '${l:HLS530.JOURNAL_LINE_MODIFY}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_journal_import_create_link_id');
......
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