Commit 25fe5d15 authored by 陆正友's avatar 陆正友

进项发票校验

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