Issues fixes : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-04-20 16:21:01 +05:30
parent 0529c1f859
commit 4457a1c4f5

View File

@ -1221,6 +1221,8 @@ export class BusinessInfoComponent implements OnInit {
let master_name = 'BUSINESSENTITYTYPE';
this._pd.getAllMasterDatas(master_name).subscribe(data => {
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_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;
@ -1228,8 +1230,8 @@ export class BusinessInfoComponent implements OnInit {
// 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;
}
// data.records.forEach(val => {