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
21a93df8
Commit
21a93df8
authored
Sep 17, 2021
by
chenzhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进项发票导入校验
parent
47c6d298
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
ap_invoice_import_detail.lview
.../webapp/modules/acp/ACP522/ap_invoice_import_detail.lview
+26
-7
No files found.
src/main/webapp/modules/acp/ACP522/ap_invoice_import_detail.lview
View file @
21a93df8
...
...
@@ -42,6 +42,7 @@
var hd_record = $(hd_id).getAt(0);
var lease_item_amount=hd_record.get('lease_item_amount');
if($(ds_id).getAll().dirty){
alert(111);
return;
}
...
...
@@ -84,6 +85,13 @@
if (!isNaN(records[i].get('tax_amount')||0)) {
sum_tax=plus((records[i].get('tax_amount')||0),(sum_tax||0));
}
//校验重复发票号码 add by 26887cz 2021-09-07
for(var j =i+1;j < records.length;j++){
if(records[i].get('invoice_number')==records[j].get('invoice_number')){
Leaf.showMessage('提示', '发票号码重复,请重新扫描输入!');
return;
}
}
}
if(sum!=lease_item_amount){
Leaf.showMessage('提示', '本次发票明细含税总计不等于该合同设备价!');
...
...
@@ -133,6 +141,17 @@
var invoice_date = strs[5];
//检验设备价格需要大于不含税金额
if (strs.length ==9) {
//校验重复发票号码 add by 26887cz 2021-09-07
var acr_records = $(acp_ds_id).getAll();
for(var i= 0 ; i
<acr_records.length
;i++){
if(acr_records[i].get("invoice_number")
==
invoice_number){
Leaf.showMessage('提示',
'发票号码重复,请重新扫描!');
setTimeout(function()
{
record.set('invoice',
'');
},
50);
return;
}
}
Leaf.request({
url:
$('acp_invoice_inf_import_link').getUrl(),
para:
{
...
...
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