assessed income and emp form changes

This commit is contained in:
sriram-at-840620226347 2020-01-17 12:51:06 +05:30
parent 242385015c
commit 0d3b193e6f
2 changed files with 6 additions and 1 deletions

View File

@ -224,7 +224,7 @@
OnlyNumber type="text" autocomplete="off" required>
<mat-hint align="start" style="font-size:90%" *ngIf="employmentForm.controls['net_monthly_salary'].value != ''">{{"&#8377;"}} {{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('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"
formControlName="net_take_home"> -->
</mat-form-field>

View File

@ -6,6 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core';
export class RupeeCurrencyFormatPipe implements PipeTransform {
transform(value: any): any {
var currencySymbol = '₹';
if (!isNaN(value) && value) {
var currencySymbol = '₹';
//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;
}
else if(value == 0)
{
return currencySymbol + value;
}
}
}