approx in word : ps
This commit is contained in:
parent
246654f445
commit
80e6048918
@ -222,7 +222,8 @@
|
|||||||
<div *ngIf="sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 5">
|
<div *ngIf="sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 5">
|
||||||
<div fxFlex="33">
|
<div fxFlex="33">
|
||||||
<mat-form-field style="width:100%">
|
<mat-form-field style="width:100%">
|
||||||
<input type="number" matInput placeholder="Approximate Market Value" formControlName="approximate_market_value">
|
<input type="number" matInput placeholder="Approximate Market Value" formControlName="approximate_market_value" (keyup)="inWords($event.target.value,i,4)">
|
||||||
|
<mat-hint align="end" style="font-size:12px" *ngIf="sup.get('approximate_market_value').value != ''">{{"₹"}} {{ApproxInwords[i]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -44,6 +44,7 @@ export class PdQuestionAssestsPage {
|
|||||||
PremiumPaidInwords: any=[];
|
PremiumPaidInwords: any=[];
|
||||||
SumAssuredInwords: any=[];
|
SumAssuredInwords: any=[];
|
||||||
AmtInvestInwords: any=[];
|
AmtInvestInwords: any=[];
|
||||||
|
ApproxInwords:any =[];
|
||||||
existCompanyList: any=[];
|
existCompanyList: any=[];
|
||||||
mergeCompanyApplicant: any=[];
|
mergeCompanyApplicant: any=[];
|
||||||
isOtherOwner: any = [];
|
isOtherOwner: any = [];
|
||||||
@ -509,6 +510,7 @@ export class PdQuestionAssestsPage {
|
|||||||
|
|
||||||
const control = <FormArray>this.AssetsDetailsForm.controls['assets_details'];
|
const control = <FormArray>this.AssetsDetailsForm.controls['assets_details'];
|
||||||
control.push(this.initDetailsWithdata(vals));
|
control.push(this.initDetailsWithdata(vals));
|
||||||
|
this.inWords(+val.approximate_market_value,index,4);
|
||||||
this.setAssetsDetailsWithData(vals.assets_mode, val.details, control.length-1)
|
this.setAssetsDetailsWithData(vals.assets_mode, val.details, control.length-1)
|
||||||
// this.setRequiredValidation(val.name_of_the_owner, index, '', 4);
|
// this.setRequiredValidation(val.name_of_the_owner, index, '', 4);
|
||||||
});
|
});
|
||||||
@ -640,6 +642,9 @@ export class PdQuestionAssestsPage {
|
|||||||
case 3 :
|
case 3 :
|
||||||
this.AmtInvestInwords[i] = this.constprovider.convertNumberToWords(e);
|
this.AmtInvestInwords[i] = this.constprovider.convertNumberToWords(e);
|
||||||
break;
|
break;
|
||||||
|
case 4 :
|
||||||
|
this.ApproxInwords[i] = this.constprovider.convertNumberToWords(e);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -221,7 +221,6 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<ion-buttons end>
|
<ion-buttons end>
|
||||||
<ion-col col-3 offset-3>
|
<ion-col col-3 offset-3>
|
||||||
<a *ngIf="item.controls.trading_products.controls.length > 1" (click)="removeTradingProduct(l)">
|
<a *ngIf="item.controls.trading_products.controls.length > 1" (click)="removeTradingProduct(l)">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user