Issues fixes : ps
This commit is contained in:
parent
0529c1f859
commit
4457a1c4f5
@ -1221,6 +1221,8 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
let master_name = 'BUSINESSENTITYTYPE';
|
let master_name = 'BUSINESSENTITYTYPE';
|
||||||
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
||||||
let filterList = data.records.filter(val => val.business_entity_type_id == this.generalExistEntityType);
|
let filterList = data.records.filter(val => val.business_entity_type_id == this.generalExistEntityType);
|
||||||
|
console.log('data.records',data.records);
|
||||||
|
console.log('filterList',filterList);
|
||||||
this.businessEntityTypeList.business_entity_type_id = filterList[0].business_entity_type_id == 1;
|
this.businessEntityTypeList.business_entity_type_id = filterList[0].business_entity_type_id == 1;
|
||||||
this.businessEntityTypeList.business_entity_type_name = filterList[0].business_entity_type_id != 1 ? filterList[0].business_entity_type_name : this.generalExistEntityType_other;
|
this.businessEntityTypeList.business_entity_type_name = filterList[0].business_entity_type_id != 1 ? filterList[0].business_entity_type_name : this.generalExistEntityType_other;
|
||||||
this.businessEntityTypeList.section_label = filterList[0].business_entity_type_id != 1 ? filterList[0].section_label : this.generalExistEntityType_other;
|
this.businessEntityTypeList.section_label = filterList[0].business_entity_type_id != 1 ? filterList[0].section_label : this.generalExistEntityType_other;
|
||||||
@ -1228,8 +1230,8 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
|
|
||||||
// if(this.businessForm.controls.partners['controls'].length > 1)
|
// if(this.businessForm.controls.partners['controls'].length > 1)
|
||||||
// {}
|
// {}
|
||||||
|
// if (this.businessEntityTypeList.business_entity_type_name == 'OPC (One Person Company)' || this.businessEntityTypeList.business_entity_type_name == 'Sole proprietorship') {
|
||||||
if (this.businessEntityTypeList.business_entity_type_name == 'OPC (One Person Company)' || this.businessEntityTypeList.business_entity_type_name == 'Sole proprietorship') {
|
if (this.businessEntityTypeList.business_entity_type_name == 'OPC (One Person Company)' || this.businessEntityTypeList.business_entity_type_name == 'Partnership' || this.businessEntityTypeList.business_entity_type_name == 'Others (Please Specify)') {
|
||||||
this.EntityTypeFlag = true;
|
this.EntityTypeFlag = true;
|
||||||
}
|
}
|
||||||
// data.records.forEach(val => {
|
// data.records.forEach(val => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user