Commit cae84df1 authored by lijingjing's avatar lijingjing

[fiX] 销项发票确认修改

parent 40874745
...@@ -115,6 +115,16 @@ ...@@ -115,6 +115,16 @@
} }
function acr513_invoice_confirm() { function acr513_invoice_confirm() {
var records = $('acr513_invoice_result_ds').getSelected();
if (records.length != 1) {
Leaf.showMessage('提示', '请选择一条数据');
return;
}
if (records[0].get('created_by') == ' ${/session/@user_id}') {
Leaf.showMessage('提示', '确认人不能和开票人一样,请勿确认!');
return;
}
$('acr513_invoice_result_ds').submitSelected(); $('acr513_invoice_result_ds').submitSelected();
} }
......
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