assessed income and emp form changes
This commit is contained in:
parent
242385015c
commit
0d3b193e6f
@ -224,7 +224,7 @@
|
|||||||
OnlyNumber type="text" autocomplete="off" required>
|
OnlyNumber type="text" autocomplete="off" required>
|
||||||
<mat-hint align="start" style="font-size:90%" *ngIf="employmentForm.controls['net_monthly_salary'].value != ''">{{"₹"}} {{employmentForm.controls['net_monthly_salary'].value | numberToWords}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="employmentForm.controls['net_monthly_salary'].value != ''">{{"₹"}} {{employmentForm.controls['net_monthly_salary'].value | numberToWords}} Only</mat-hint>
|
||||||
<mat-error *ngIf="employmentForm.controls['net_monthly_salary'].hasError('required')">Net Monthly Salary Required</mat-error>
|
<mat-error *ngIf="employmentForm.controls['net_monthly_salary'].hasError('required')">Net Monthly Salary Required</mat-error>
|
||||||
<mat-error *ngIf="employmentForm.controls['net_monthly_salary'].hasError('max')">Given value is More than Gross Monthly Salary</mat-error>
|
<mat-error *ngIf="employmentForm.controls['net_monthly_salary'].hasError('max')">Net Month Salary is greater than Gross monthly Salary</mat-error>
|
||||||
<!-- <input matInput placeholder="Net Take Home"
|
<!-- <input matInput placeholder="Net Take Home"
|
||||||
formControlName="net_take_home"> -->
|
formControlName="net_take_home"> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core';
|
|||||||
export class RupeeCurrencyFormatPipe implements PipeTransform {
|
export class RupeeCurrencyFormatPipe implements PipeTransform {
|
||||||
|
|
||||||
transform(value: any): any {
|
transform(value: any): any {
|
||||||
|
var currencySymbol = '₹';
|
||||||
if (!isNaN(value) && value) {
|
if (!isNaN(value) && value) {
|
||||||
var currencySymbol = '₹';
|
var currencySymbol = '₹';
|
||||||
//var output = Number(input).toLocaleString('en-IN'); <-- This method is not working fine in all browsers!
|
//var output = Number(input).toLocaleString('en-IN'); <-- This method is not working fine in all browsers!
|
||||||
@ -23,6 +24,10 @@ export class RupeeCurrencyFormatPipe implements PipeTransform {
|
|||||||
|
|
||||||
return currencySymbol + output;
|
return currencySymbol + output;
|
||||||
}
|
}
|
||||||
|
else if(value == 0)
|
||||||
|
{
|
||||||
|
return currencySymbol + value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user