Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
bf4d8a8f
Commit
bf4d8a8f
authored
Oct 16, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进项发票校验
parent
ab02fec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
jz_invoice_import_detail.lview
.../webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
+12
-12
No files found.
src/main/webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
View file @
bf4d8a8f
...
...
@@ -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({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment