diff --git a/src/pages/pd-question/pd-question-assests/pd-question-assests.html b/src/pages/pd-question/pd-question-assests/pd-question-assests.html index 6cc72f62..58e426be 100755 --- a/src/pages/pd-question/pd-question-assests/pd-question-assests.html +++ b/src/pages/pd-question/pd-question-assests/pd-question-assests.html @@ -223,7 +223,8 @@
-
+ +
diff --git a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html index cf8804a6..d5d5a76f 100755 --- a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html +++ b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html @@ -313,7 +313,7 @@
- +
Relationship of Individuals to Company / Firm diff --git a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts index 394c7379..46617016 100755 --- a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts +++ b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts @@ -81,6 +81,7 @@ export class PdQuestionGeneralInfoPage { //this.maxDate=new Date(get_max_date) this.FormId = this.navParams.get('FormId'); this.customer_segment_abbr = this.pdDetails.customer_segment_abbr; + console.log('this.customer_segment_abbr',this.customer_segment_abbr) this.users = this.aws.getlocale(); this.getdropdown(); @@ -875,19 +876,29 @@ console.log('1)',this.temp); } } - saveRecords.individuals=valuesData_indi; - saveRecords.companies=valuesData - saveRecords.pdid=answerData.pdid; - saveRecords.formid=answerData.formid; - saveRecords.fk_createdby=this.users; - - - saveRecords.persons_with_relationships=answerData.persons_with_relationships; + if (this.customer_segment_abbr != 'SE-RI') { + saveRecords.companies=valuesData saveRecords.company_with_relationships=answerData.company_with_relationships - saveRecords.general_remark=answerData.general_remark; - - - + saveRecords.rental_income_rcv_in_years = null; + saveRecords.rental_income_rcv_in_month = null; + //saveRecords.applicant_relation=answerData.applicant_relation; + } + else if (this.customer_segment_abbr == 'SE-RI') { + saveRecords.companies = []; + saveRecords.company_with_relationships = []; + saveRecords.rental_income_rcv_in_years = answerData.rental_income_rcv_in_years; + saveRecords.rental_income_rcv_in_month = answerData.rental_income_rcv_in_month; + //saveRecords.applicant_relation=answerData.applicant_relation; + } + + saveRecords.individuals=valuesData_indi; + // saveRecords.companies=valuesData + saveRecords.pdid=answerData.pdid; + saveRecords.formid=answerData.formid; + saveRecords.fk_createdby=this.users; + saveRecords.persons_with_relationships=answerData.persons_with_relationships; + // saveRecords.company_with_relationships=answerData.company_with_relationships + saveRecords.general_remark=answerData.general_remark; this.qustCat.saveForm(saveRecords).subscribe(dataResult=>{ if(dataResult['dataStatus']==true){