summaryrefslogtreecommitdiff
path: root/lib/po
diff options
context:
space:
mode:
Diffstat (limited to 'lib/po')
-rw-r--r--lib/po/vendor-table/shi-vendor-po-columns.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/po/vendor-table/shi-vendor-po-columns.tsx b/lib/po/vendor-table/shi-vendor-po-columns.tsx
index 2aa7996b..64c95d32 100644
--- a/lib/po/vendor-table/shi-vendor-po-columns.tsx
+++ b/lib/po/vendor-table/shi-vendor-po-columns.tsx
@@ -18,6 +18,7 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip"
import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table-column-simple-header"
+import { formatNumber } from "@/lib/utils"
import { VendorPO } from "./types"
@@ -212,7 +213,7 @@ export function getShiVendorColumns({
),
cell: ({ row }) => {
const amount = row.getValue("totalAmount") as string | number
- return <div className="text-sm text-right font-mono">{amount || '-'}</div>
+ return <div className="text-sm text-right font-mono">{formatNumber(amount)}</div>
},
size: 120,
},
@@ -267,8 +268,8 @@ export function getShiVendorColumns({
<DataTableColumnHeaderSimple column={column} title="환율" />
),
cell: ({ row }) => {
- const rate = row.getValue("exchangeRate") as string
- return <div className="text-sm font-mono">{rate || '-'}</div>
+ const rate = row.getValue("exchangeRate") as string | number
+ return <div className="text-sm text-right font-mono">{formatNumber(rate)}</div>
},
size: 100,
},