diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts index 15bb2fb61..7c2c5c5aa 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts @@ -102,6 +102,11 @@ export class AddPdComponent implements OnInit, OnDestroy { console.log(selectLender); this.selectedLender(selectLender) + this._PDtriggerForm.controls['fk_product_id'].setValue(res['records'].default_product); + this._PDtriggerForm.controls['fk_customer_segment'].setValue(res['records'].default_customer_segment); + this._PDtriggerForm.controls['fk_pd_type'].setValue(res['records'].default_pd_type); + this.getSubproductList(res['records'].default_product) + } else{ this.notifier.notify("success","Something went wrong Reopen the window and Try again"); @@ -185,20 +190,20 @@ export class AddPdComponent implements OnInit, OnDestroy { this._PDtriggerForm.controls['fk_customer_segment'].setValue(''); this._PDtriggerForm.controls['loan_amount'].setValue(''); - if(this.lenderShortName == "IIB"){ //FOR INDUSLAND BANK - // console.log("entered"); - this._PDtriggerForm.controls['fk_product_id'].setValue("3") - this._PDtriggerForm.controls['fk_pd_type'].setValue("1"); - this.getSubproductList("3") - } - else if(this.lenderShortName == 'HHFL'){ - this.getSubproductList("1") - this._PDtriggerForm.controls['fk_product_id'].setValue('1'); - this._PDtriggerForm.controls['fk_subproduct_id'].setValue('1'); - this._PDtriggerForm.controls['fk_customer_segment'].setValue('5'); - this._PDtriggerForm.controls['fk_pd_type'].setValue('1'); - this._PDtriggerForm.controls['loan_amount'].setValue(0); - } + // if(this.lenderShortName == "IIB"){ //FOR INDUSLAND BANK + // // console.log("entered"); + // this._PDtriggerForm.controls['fk_product_id'].setValue("3") + // this._PDtriggerForm.controls['fk_pd_type'].setValue("1"); + // this.getSubproductList("3") + // } + // else if(this.lenderShortName == 'HHFL'){ + // this.getSubproductList("1") + // this._PDtriggerForm.controls['fk_product_id'].setValue('1'); + // this._PDtriggerForm.controls['fk_subproduct_id'].setValue('1'); + // this._PDtriggerForm.controls['fk_customer_segment'].setValue('5'); + // this._PDtriggerForm.controls['fk_pd_type'].setValue('1'); + // this._PDtriggerForm.controls['loan_amount'].setValue(0); + // } // console.log("len",lender) } @@ -298,11 +303,11 @@ export class AddPdComponent implements OnInit, OnDestroy { break; } - if(this.lenderShortName == 'CLIX' && productabbr != ''){ - this._PDtriggerForm.controls['fk_pd_type'].setValue('1'); - this._PDtriggerForm.controls['fk_customer_segment'].setValue('5'); - this._PDtriggerForm.controls['loan_amount'].setValue(0); - } + // if(this.lenderShortName == 'CLIX' && productabbr != ''){ + // this._PDtriggerForm.controls['fk_pd_type'].setValue('1'); + // this._PDtriggerForm.controls['fk_customer_segment'].setValue('5'); + // this._PDtriggerForm.controls['loan_amount'].setValue(0); + // } } diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html b/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html index f7cfadd1b..eee013730 100644 --- a/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html +++ b/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html @@ -1,26 +1,45 @@