Merge pull request #29 from lora322/ai-dev

Change column type to string and add value formatter
This commit is contained in:
lora322 2025-09-23 15:53:25 -04:00 committed by GitHub
commit 336e151889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,16 @@ export const loadColumns = async (
editable: hasUpdatePermission, editable: hasUpdatePermission,
type: 'number', type: 'string',
valueFormatter: ({ value }) =>
value != null
? Number(value).toLocaleString('en-US', {
style: 'currency',
currency: 'CAD',
minimumFractionDigits: 2,
maximumFractionDigits: 2,
})
: '',
}, },
{ {