approx in word : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-03-18 12:28:30 +05:30
parent 246654f445
commit 80e6048918
3 changed files with 7 additions and 2 deletions

View File

@ -222,7 +222,8 @@
<div *ngIf="sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 5">
<div fxFlex="33">
<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 != ''">{{"&#8377;"}} {{ApproxInwords[i]}} Only</mat-hint>
</mat-form-field>
</div>
</div>

View File

@ -44,6 +44,7 @@ export class PdQuestionAssestsPage {
PremiumPaidInwords: any=[];
SumAssuredInwords: any=[];
AmtInvestInwords: any=[];
ApproxInwords:any =[];
existCompanyList: any=[];
mergeCompanyApplicant: any=[];
isOtherOwner: any = [];
@ -509,6 +510,7 @@ export class PdQuestionAssestsPage {
const control = <FormArray>this.AssetsDetailsForm.controls['assets_details'];
control.push(this.initDetailsWithdata(vals));
this.inWords(+val.approximate_market_value,index,4);
this.setAssetsDetailsWithData(vals.assets_mode, val.details, control.length-1)
// this.setRequiredValidation(val.name_of_the_owner, index, '', 4);
});
@ -640,6 +642,9 @@ export class PdQuestionAssestsPage {
case 3 :
this.AmtInvestInwords[i] = this.constprovider.convertNumberToWords(e);
break;
case 4 :
this.ApproxInwords[i] = this.constprovider.convertNumberToWords(e);
break;
default:
break;
}

View File

@ -221,7 +221,6 @@
</mat-form-field>
</span>
</div>
</div>
<ion-buttons end>
<ion-col col-3 offset-3>
<a *ngIf="item.controls.trading_products.controls.length > 1" (click)="removeTradingProduct(l)">