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
72990922
Commit
72990922
authored
Apr 22, 2021
by
李贺贺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开票方式/接收邮件邮箱 取值检验
parent
23525589
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
238 additions
and
18 deletions
+238
-18
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+105
-10
hls_bp_master_billing.lview
...in/webapp/modules/hls/HLS214N/hls_bp_master_billing.lview
+133
-8
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
72990922
...
...
@@ -722,6 +722,12 @@
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}else if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
//小规模纳税人
record.getField('taxpayer_type').setRequired(true);
...
...
@@ -733,6 +739,13 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
}else if (value == 'NO_BILLING'){//暂时不开票
...
...
@@ -746,13 +759,52 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
if (record.get('bp_class') == 'NP') {
//开票
if (value == 'BILLING') {
//一般纳税人
if( record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
//小规模纳税人
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
}else if (value == 'NO_BILLING'){//暂时不开票
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
//纳税人类型
if (name == 'taxpayer_type' && value) {
if (record.get('bp_class') == 'ORG') {
if (value == 'SMALL_SCALE_TAXPAYER') {
if (record.get('invoice_method') == 'BILLING') {
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
...
...
@@ -762,7 +814,32 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
//暂不开票
else if( record.get('invoice_method') == 'NO_BILLING'){
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}else if (value == 'GENERAL_TAXPAYER') {
if (record.get('invoice_method') == 'BILLING'){
record.getField('taxpayer_type').setRequired(true);
...
...
@@ -774,6 +851,12 @@
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}else if ( record.get('invoice_method') == 'NO_BILLING'){
record.getField('taxpayer_type').setRequired(true);
...
...
@@ -785,11 +868,23 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
}
if(name == 'invoice_type'){
if(value == 'PAPER'){
record.getField('reception_maile').setRequired(false);
}else{
record.getField('reception_maile').setRequired(true);
}
}
}
};
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_billing.lview
View file @
72990922
This diff is collapsed.
Click to expand it.
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