New input control for Transaction Amounts

This commit is contained in:
Jose Alberto Hernandez
2024-06-09 22:38:28 -06:00
committed by Jose Alberto Hernandez
parent 83f9a0e499
commit 9b51ec4694
48 changed files with 318 additions and 122 deletions
+1 -2
View File
@@ -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);
}
}
-11
View File
@@ -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();
});
});