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
81b749d9
Commit
81b749d9
authored
Oct 18, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进项经租发票尾差校验
parent
51b5998d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
jz_invoice_import_detail.lview
.../webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
+8
-3
No files found.
src/main/webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
View file @
81b749d9
...
...
@@ -52,6 +52,7 @@
return;
}
var sum = 0;
var sum_net_amount = 0;
var sum_tax = 0;
var net_lease_item_amount = hd_record.get('net_lease_item_amount') || 0;
for (var i = 0; i < records.length; i++) {
...
...
@@ -68,10 +69,14 @@
var r = records[i];
var d = r.get(name);
var n = records[i].get('total_amount') || 0;
var m = records[i].get('net_amount') || 0;
if (!isNaN(n)) {
sum = plus(sum, n);
}
if (!isNaN(m)) {
sum_net_amount = plus(sum_net_amount, m);
}
console.log(sum_net_amount);
// 营业外收入或营业外支出科目金额超过1,请联系系统管理员!
if (!isNaN(records[i].get('tax_amount') || 0)) {
sum_tax = plus((records[i].get('tax_amount') || 0), (sum_tax || 0));
...
...
@@ -88,8 +93,8 @@
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));
var diff = ((
sum_net_amount + sum_tax - lease_item_amount) >
0 ? (sum_net_amount + sum_tax - lease_item_amount) : (lease_item_amount - sum_tax - sum_net
_amount));
console.log(diff);
if (diff > 1) {
Leaf.showMessage('提示', '营业外收入或营业外支出科目金额超过1,请联系系统管理员!');
return;
...
...
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