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
27f84e50
Commit
27f84e50
authored
Oct 16, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经租进项发票工作流页面判断
parent
3b16a466
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
20 deletions
+24
-20
acp_invoice_inf_import.lwm
...app/WEB-INF/classes/acp/ACP522/acp_invoice_inf_import.lwm
+1
-0
ap_invoice_import_scanning.lview
...ebapp/modules/acp/ACP522/ap_invoice_import_scanning.lview
+11
-11
jz_invoice_import_detail.lview
.../webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
+12
-9
No files found.
src/main/webapp/WEB-INF/classes/acp/ACP522/acp_invoice_inf_import.lwm
View file @
27f84e50
...
...
@@ -24,6 +24,7 @@
<bm:update-sql>
<![CDATA[
begin
acp_invoice_import_pkg.submit_wfl( p_contract_id =>
${@contract_id},
p_business_type => ${@business_type},
p_user_id => ${/session/@user_id},
p_company_id => ${/session/@company_id});
end;
...
...
src/main/webapp/modules/acp/ACP522/ap_invoice_import_scanning.lview
View file @
27f84e50
...
...
@@ -64,21 +64,20 @@
}
function acp522_save() {
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
if(record.get('business_type
')=='LEASE
'){
if(record.get('business_type
_n')=='经营性租赁
'){
if($('acp522_acp_invoice_import_detail_ds').validate()){
$('ap_invoice_import_scanning').close();
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
var record_id=record.id;
var ds_id=record.ds.id;
console.log(record.get('business_type'));
var param = record.data;
param['function_usage'] = 'MODIFY';
param['function_code'] = 'ACP522
I
';
param['function_code'] = 'ACP522
J
';
param['contract_id'] = record.get('contract_id');
//param['business_type'] = record.get('business_type');
param['url_title'] = '进项发票详情';
param['winId'] = '
aaaaa
';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, '
ap
_invoice_import_detail_link1', ds_id);
param['url_title'] = '进项发票详情
(经租)
';
param['winId'] = '
bbbbb
';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, '
jz
_invoice_import_detail_link1', ds_id);
}
}else{
if($('acp522_acp_invoice_import_detail_ds').validate()){
...
...
@@ -86,14 +85,15 @@
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
var record_id=record.id;
var ds_id=record.ds.id;
console.log(record.get('business_type'));
var param = record.data;
param['function_usage'] = 'MODIFY';
param['function_code'] = 'ACP522
J
';
param['function_code'] = 'ACP522
I
';
param['contract_id'] = record.get('contract_id');
//param['business_type'] = record.get('business_type');
param['url_title'] = '进项发票详情
(经租)
';
param['winId'] = '
bbbbb
';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, '
jz
_invoice_import_detail_link1', ds_id);
param['url_title'] = '进项发票详情';
param['winId'] = '
aaaaa
';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, '
ap
_invoice_import_detail_link1', ds_id);
}
}
}
...
...
@@ -113,7 +113,7 @@
<a:map
from=
"contract_number"
to=
"contract_number"
/>
<a:map
from=
"contract_name"
to=
"contract_name"
/>
<a:map
from=
"contract_id"
to=
"contract_id"
/>
<a:map
from=
"business_type
"
to=
"business_type
"
/>
<a:map
from=
"business_type
_n"
to=
"business_type_n
"
/>
</a:mapping>
</a:field>
</a:fields>
...
...
src/main/webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
View file @
27f84e50
...
...
@@ -38,6 +38,8 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'acp_invoice_ln');
var hd_record = $(hd_id).getAt(0);
var lease_item_amount = hd_record.get('lease_item_amount');
var business_type = hd_record.get('business_type');
console.log(business_type);
if ($(ds_id).getAll().dirty) {
return;
}
...
...
@@ -59,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;
...
...
@@ -82,10 +84,10 @@
}
}
}
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) {
...
...
@@ -97,7 +99,8 @@
Leaf.request({
url: $('acp_invoice_inf_import_submit_link').getUrl(),
para: {
contract_id: hd_record.get('contract_id')
contract_id: hd_record.get('contract_id'),
business_type: hd_record.get('business_type')
},
success: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
...
...
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