From 12cbc70c65a8588b85af3d90b527e16a0a9f8e21 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Sun, 2 Nov 2025 18:15:09 +0900 Subject: (김준회) 공통: 숫자 , 구분 (3자리) 공통함수 추가 및 PO 금액 컬럼들에 적용, currency 정보에 따라 표기하도록 분기 처리 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/po/vendor-table/shi-vendor-po-columns.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/po/vendor-table/shi-vendor-po-columns.tsx') 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
{amount || '-'}
+ return
{formatNumber(amount)}
}, size: 120, }, @@ -267,8 +268,8 @@ export function getShiVendorColumns({ ), cell: ({ row }) => { - const rate = row.getValue("exchangeRate") as string - return
{rate || '-'}
+ const rate = row.getValue("exchangeRate") as string | number + return
{formatNumber(rate)}
}, size: 100, }, -- cgit v1.2.3