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

---
 components/contract/contract-info-card.tsx | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

(limited to 'components/contract/contract-info-card.tsx')

diff --git a/components/contract/contract-info-card.tsx b/components/contract/contract-info-card.tsx
index 8b9c5103..8c9ec4c3 100644
--- a/components/contract/contract-info-card.tsx
+++ b/components/contract/contract-info-card.tsx
@@ -1,6 +1,6 @@
 import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
 import { Button } from "@/components/ui/button"
-import { formatCurrency, formatDate } from "@/lib/utils"
+import { formatCurrency, formatDate, formatNumber } from "@/lib/utils"
 import { FileText, DollarSign } from "lucide-react"
 
 interface ContractInfoCardProps {
@@ -70,10 +70,12 @@ export function ContractInfoCard({ contract }: ContractInfoCardProps) {
             <p className="text-sm font-medium text-muted-foreground">계약금액</p>
             <p className="text-sm font-semibold">
               {contract.totalAmount
-                ? formatCurrency(
-                    parseFloat(contract.totalAmount.toString()),
-                    contract.currency || "KRW"
-                  )
+                ? contract.currency
+                  ? formatCurrency(
+                      parseFloat(contract.totalAmount.toString()),
+                      contract.currency
+                    )
+                  : formatNumber(parseFloat(contract.totalAmount.toString()))
                 : "-"}
             </p>
           </div>
-- 
cgit v1.2.3

