Fairoj : CFPL changes and issue fixes
This commit is contained in:
parent
c438d063e8
commit
3894a7d0fa
@ -3,7 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"production": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod ",
|
"production": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build --prod ",
|
||||||
"staging": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build --configuration=staging",
|
"staging": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build --configuration=staging",
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
|
|||||||
@ -588,8 +588,10 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
this._PDtriggerForm.controls['fk_customer_segment'].setValidators([Validators.required]);
|
this._PDtriggerForm.controls['fk_customer_segment'].setValidators([Validators.required]);
|
||||||
this._PDtriggerForm.controls['fk_customer_segment'].updateValueAndValidity();
|
this._PDtriggerForm.controls['fk_customer_segment'].updateValueAndValidity();
|
||||||
|
|
||||||
|
if(this.lenderShortName != 'CFPL') {
|
||||||
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required]);
|
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required]);
|
||||||
this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -175,9 +175,9 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 62%">
|
<mat-form-field style="width: 62%">
|
||||||
<!-- <input matInput placeholder="Loan Amount" formControlName="loan_amount"> -->
|
<!-- <input matInput placeholder="Loan Amount" formControlName="loan_amount"> -->
|
||||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Amount</mat-label>
|
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Amount <span *ngIf="pdMain.loan_amount.hasError('required')">*</span></mat-label>
|
||||||
<input matInput formControlName="loan_amount"
|
<input matInput formControlName="loan_amount"
|
||||||
OnlyNumber required
|
OnlyNumber
|
||||||
autocomplete="off">
|
autocomplete="off">
|
||||||
<mat-hint align="start" style="font-size:90%" *ngIf="pdMain.loan_amount.value != ''">{{"₹"}} {{pdMain.loan_amount.value | numberToWords}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="pdMain.loan_amount.value != ''">{{"₹"}} {{pdMain.loan_amount.value | numberToWords}} Only</mat-hint>
|
||||||
<!-- <mat-error *ngIf="pdMain.loan_amount.hasError('required')">Amount Required.</mat-error> -->
|
<!-- <mat-error *ngIf="pdMain.loan_amount.hasError('required')">Amount Required.</mat-error> -->
|
||||||
|
|||||||
@ -255,6 +255,15 @@ if(!option){
|
|||||||
// this._EditPDtriggerForm.controls['fk_product_id'].setValue("3")
|
// this._EditPDtriggerForm.controls['fk_product_id'].setValue("3")
|
||||||
// this._EditPDtriggerForm.controls['fk_pd_type'].setValue("1");
|
// this._EditPDtriggerForm.controls['fk_pd_type'].setValue("1");
|
||||||
this.getSubproductList("3",2)
|
this.getSubproductList("3",2)
|
||||||
|
}
|
||||||
|
if(lender.short_name == 'CFPL'){
|
||||||
|
this._EditPDtriggerForm.controls['loan_amount'].clearValidators();
|
||||||
|
this._EditPDtriggerForm.controls['loan_amount'].setValidators([Validators.pattern('^[0-9]*$')])
|
||||||
|
this._EditPDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this._EditPDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')]);
|
||||||
|
this._EditPDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||||
}
|
}
|
||||||
// console.log("len",lender)
|
// console.log("len",lender)
|
||||||
}
|
}
|
||||||
@ -378,7 +387,7 @@ if(!option){
|
|||||||
fk_subproduct_id: [this.data.records.fk_subproduct_id],
|
fk_subproduct_id: [this.data.records.fk_subproduct_id],
|
||||||
fk_pd_type: [this.data.records.fk_pd_type],
|
fk_pd_type: [this.data.records.fk_pd_type],
|
||||||
fk_customer_segment: [this.data.records.fk_customer_segment],
|
fk_customer_segment: [this.data.records.fk_customer_segment],
|
||||||
loan_amount: [this.data.records.loan_amount,Validators.compose([Validators.pattern('^[0-9]*$')])],
|
loan_amount: [this.data.records.loan_amount,Validators.compose([Validators.required,Validators.pattern('^[0-9]*$')])],
|
||||||
addresses: this._fb.array([]),
|
addresses: this._fb.array([]),
|
||||||
// addressline1: [this.data.records.addressline1.toUpperCase()],
|
// addressline1: [this.data.records.addressline1.toUpperCase()],
|
||||||
// fk_city: [this.data.records.fk_city],
|
// fk_city: [this.data.records.fk_city],
|
||||||
|
|||||||
@ -392,7 +392,7 @@
|
|||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('assets_mode').value != ''" style="width:95%">
|
<mat-form-field *ngIf="sup.get('assets_mode').value != ''" style="width:95%">
|
||||||
<mat-label>Is There a {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Against This Asset?</mat-label>
|
<mat-label>Is There a Loan Against This Asset?</mat-label>
|
||||||
<mat-select
|
<mat-select
|
||||||
formControlName="emi">
|
formControlName="emi">
|
||||||
<mat-option>Select</mat-option>
|
<mat-option>Select</mat-option>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user