New input control for Transaction Amounts
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
83f9a0e499
commit
9b51ec4694
@@ -15,10 +15,9 @@ export class FormatNumberPipe implements PipeTransform {
|
||||
if (!value) {
|
||||
return defaultValue ? defaultValue : '';
|
||||
}
|
||||
const locale = this.settingsService.language.code;
|
||||
const decimals = this.settingsService.decimals;
|
||||
const format = `1.${decimals}-${decimals}`;
|
||||
return this.decimalFormat.transform(value, format, locale);
|
||||
return this.decimalFormat.transform(value, format);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
/* tslint:disable:no-unused-variable */
|
||||
|
||||
import { TestBed, async } from '@angular/core/testing';
|
||||
import { TranslatePipe } from './translate.pipe';
|
||||
|
||||
describe('Pipe: Translatee', () => {
|
||||
it('create an instance', () => {
|
||||
let pipe = new TranslatePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user