From 58dd81f6208199791e7451a1cb239f23bcd0a20f Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 12 Aug 2025 09:50:35 +0000
Subject: (김준회) 결재 템플릿 및 결재선 관리 revalidate 처리, 결재선 관리
 카테고리 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/approval-line/table/update-approval-line-sheet.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'lib/approval-line/table/update-approval-line-sheet.tsx')

diff --git a/lib/approval-line/table/update-approval-line-sheet.tsx b/lib/approval-line/table/update-approval-line-sheet.tsx
index efc720de..9153eb38 100644
--- a/lib/approval-line/table/update-approval-line-sheet.tsx
+++ b/lib/approval-line/table/update-approval-line-sheet.tsx
@@ -61,6 +61,7 @@ export function UpdateApprovalLineSheet({ open, onOpenChange, line }: UpdateAppr
     resolver: zodResolver(ApprovalLineSchema),
     defaultValues: {
       name: "",
+      category: "",
       description: "",
       aplns: [],
     },
@@ -94,6 +95,7 @@ export function UpdateApprovalLineSheet({ open, onOpenChange, line }: UpdateAppr
       
       form.reset({
         name: line.name,
+        category: line.category || "",
         description: line.description || "",
         aplns: nextAplns as ApprovalLineFormData["aplns"],
       });
@@ -140,6 +142,7 @@ export function UpdateApprovalLineSheet({ open, onOpenChange, line }: UpdateAppr
     try {
       await updateApprovalLine(line.id, {
         name: data.name,
+        category: data.category || null,
         description: data.description,
         aplns: data.aplns,
         updatedBy: Number(session.user.id),
@@ -188,6 +191,20 @@ export function UpdateApprovalLineSheet({ open, onOpenChange, line }: UpdateAppr
                   )}
                 />
 
+                <FormField
+                  control={form.control}
+                  name="category"
+                  render={({ field }) => (
+                    <FormItem>
+                      <FormLabel>카테고리</FormLabel>
+                      <FormControl>
+                        <Input placeholder="카테고리를 입력하세요" {...field} />
+                      </FormControl>
+                      <FormMessage />
+                    </FormItem>
+                  )}
+                />
+
                 <FormField
                   control={form.control}
                   name="description"
-- 
cgit v1.2.3

