Commit 60744bc4 authored by 陆正友's avatar 陆正友

进项发票校验

parent 3432137d
......@@ -61,10 +61,10 @@
}
var tempa = records[i].get('total_amount') || 0;
var tempb = plus((records[i].get('net_amount') || 0), (records[i].get('tax_amount') || 0));
// if (tempa != tempb) {
// Leaf.showMessage('提示', '发票明细行存在价税合计不等于不含税金额和税额之和!');
// return;
// }
if (tempa != tempb) {
Leaf.showMessage('提示', '发票明细行存在价税合计不等于不含税金额和税额之和!');
return;
}
var r = records[i];
var d = r.get(name);
var n = records[i].get('total_amount') || 0;
......@@ -84,16 +84,16 @@
}
}
}
// if (sum != lease_item_amount) {
// Leaf.showMessage('提示', '本次发票明细含税总计不等于该合同设备价!');
// return;
// }
if (sum != lease_item_amount) {
Leaf.showMessage('提示', '本次发票明细含税总计不等于该合同设备价!');
return;
}
var diff = ((net_lease_item_amount + sum_tax - lease_item_amount) > 0 ? (net_lease_item_amount + sum_tax - lease_item_amount) : (lease_item_amount - sum_tax - net_lease_item_amount));
// if (diff > 1) {
// Leaf.showMessage('提示', '营业外收入或营业外支出科目金额超过1,请联系系统管理员!');
// return;
// }
if (diff > 1) {
Leaf.showMessage('提示', '营业外收入或营业外支出科目金额超过1,请联系系统管理员!');
return;
}
Leaf.showConfirm('${l:HLS.PROMPT}', '确定提交审批吗?', function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
......
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