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
25fe5d15
Commit
25fe5d15
authored
Oct 16, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进项发票校验
parent
04d6df50
Changes
1
Show 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 @
25fe5d15
...
@@ -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({
...
...
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