WEB-753 The cell field should be in numeric format only. (#3182)

This commit is contained in:
Soni Jay
2026-02-18 14:13:10 -06:00
committed by GitHub
parent 973484481b
commit b494c29821
3 changed files with 29 additions and 2 deletions
@@ -250,7 +250,9 @@ export class DatatableMultiRowComponent implements OnInit, OnDestroy, OnChanges
value = this.dateTimeFormat.transform(value);
} else if (columnDisplayType === 'INTEGER' || columnDisplayType === 'DECIMAL') {
if (typeof value === 'number') {
value = this.numberFormat.transform(value);
if (!this.datatables.isPhoneNumberField(columnName)) {
value = this.numberFormat.transform(value);
}
}
} else if (columnDisplayType === 'CODELOOKUP') {
if (columnHeader.columnValues && value !== null && value !== undefined) {
@@ -56,7 +56,11 @@
}
@case ('DECIMAL') {
<span>
{{ dataObject.data[0].row[i] | formatNumber }}
@if (datatables.isPhoneNumberField(columnHeader.columnName)) {
{{ dataObject.data[0].row[i] }}
} @else {
{{ dataObject.data[0].row[i] | formatNumber }}
}
</span>
}
@case ('CODELOOKUP') {