diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html index aeb37dd45..a7620fc28 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html @@ -158,13 +158,21 @@ - + + + {{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Amount + + {{"₹"}} {{pdMain.loan_amount.value | numberToWords}} Only + Required. + Enter valid amount. + @@ -277,7 +285,7 @@ Enter Valid Mobile Number. - + Enter Valid STD Code Number.   -   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 bb3f20db4..32b53491a 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,14 +102,18 @@ export class AddPdComponent implements OnInit, OnDestroy { this.filterList() } getProCusPDType(entity_id){ + console.log(entity_id); this._pd.getEntityPreferences(entity_id).subscribe(res=>{ if(res['dataStatus']){ + console.log(res); + console.log('res'); this.productAllList=res['records'].products this.pdTypeList=res['records'].pd_types this.customerSegmentAllList=res['records'].customer_segments this.finInstitutionList=res['records'].financial_institutions let lender_other_config = res['records'].lender_other_config + lender_other_config = JSON.parse(lender_other_config) if(lender_other_config != null){ this.removedControl = lender_other_config.non_mandatory_fields @@ -117,6 +121,8 @@ export class AddPdComponent implements OnInit, OnDestroy { console.log('lendercofig',lender_config) this._PDtriggerForm.controls[lender_config].clearValidators(); this._PDtriggerForm.controls[lender_config].updateValueAndValidity() + this._PDtriggerForm.controls['loan_amount'].clearValidators(); + this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity() }) } else{ @@ -176,7 +182,7 @@ export class AddPdComponent implements OnInit, OnDestroy { applicant_landline: [null, Validators.compose([Validators.minLength(6), Validators.maxLength(8), Validators.pattern('^[0-9]*$')])], company_name: [null], remarks: [null], - // allocation_type: [null], + // allocation_type: [null], // sub_allocation_type: [null], coapplicants: this._fb.array([]), addresses: this._fb.array([this.createAddresses()]), @@ -197,7 +203,14 @@ export class AddPdComponent implements OnInit, OnDestroy { this._PDtriggerForm.controls.pd_branch_id.setValue(null); this.productList = this.productAllList; - + // if(this.lenderShortName == 'CLIX') + // { + + // this._PDtriggerForm.controls['loan_amount'].setValue(null) + // this._PDtriggerForm.controls['loan_amount'].clearValidators() + // this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity() + // alert('clix'); + // } // if(this.lenderShortName == 'CLIX'){ // let getProductAbbr = this.productAllList.map(dval => dval.product_abbr); @@ -242,10 +255,10 @@ export class AddPdComponent implements OnInit, OnDestroy { this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.pattern('^[0-9]*$')]) this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity(); } - else{ - this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')]); - this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity(); - } + // else{ + // this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')]); + // this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity(); + // } // if(this.lenderShortName == "IIB"){ //FOR INDUSLAND BANK // // console.log("entered");