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 7256b4a47..71c641a87 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 @@ -209,19 +209,23 @@ export class AddPdComponent implements OnInit, OnDestroy { this._PDtriggerForm.controls.pd_branch_id.setValue(null); this.productList = this.productAllList; - // if(this.lenderShortName == 'CLIX') - // { + if(this.lenderShortName == 'CLIX') + { - // this._PDtriggerForm.controls['loan_amount'].setValue(null) - // this._PDtriggerForm.controls['loan_amount'].clearValidators() - // this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity() + this._PDtriggerForm.controls['loan_amount'].setValue(null) + this._PDtriggerForm.controls['loan_amount'].clearValidators() + this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity() + this._PDtriggerForm.controls['lender_applicant_id'].setValue(null) + this._PDtriggerForm.controls['lender_applicant_id'].clearValidators() + this._PDtriggerForm.controls['lender_applicant_id'].updateValueAndValidity() - // } - if(this.lenderShortName == 'CLIX') - { + } + //09-04-2022 + // if(this.lenderShortName == 'CLIX') + // { - this._PDtriggerForm.controls['lender_applicant_id'].setValidators([Validators.required]) - } + // this._PDtriggerForm.controls['lender_applicant_id'].setValidators([Validators.required]) + // } // if(this.lenderShortName == 'CLIX'){ // let getProductAbbr = this.productAllList.map(dval => dval.product_abbr); @@ -252,13 +256,14 @@ export class AddPdComponent implements OnInit, OnDestroy { this.billingtolist = this.lenderList if(lender.short_name != 'CHFPL'){ this._PDtriggerForm.controls['sub_entity_id'].disable() - } else{ - + } + else + { this.billingtolist = this.lenderList.filter(item=> item.short_name == 'CHFPL' || item.short_name == 'CLIX'); console.log('filter lender',this.billingtolist); this._PDtriggerForm.controls['sub_entity_id'].enable() - } + } this._PDtriggerForm.controls['sub_entity_id'].setValue(lender.entity_id)