clix lender - issue fixed

This commit is contained in:
surya 2022-04-09 23:47:21 +05:30
parent 92ba3e837c
commit f2333705f7

View File

@ -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)