From a8674e6b91fb4d356c311fad0251878de154da53 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 24 Nov 2025 11:16:32 +0000
Subject: (최겸) 구매 입찰 수정(폐찰, 낙찰 결재 기능 추가 등)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../selectors/gl-account/gl-account-selector.tsx     | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

(limited to 'components/common/selectors/gl-account/gl-account-selector.tsx')

diff --git a/components/common/selectors/gl-account/gl-account-selector.tsx b/components/common/selectors/gl-account/gl-account-selector.tsx
index 7e47a072..63eeede8 100644
--- a/components/common/selectors/gl-account/gl-account-selector.tsx
+++ b/components/common/selectors/gl-account/gl-account-selector.tsx
@@ -5,9 +5,8 @@
  *
  * @description
  * - 오라클에서 GL 계정들을 조회
- * - SAKNR: 계정(G/L)
- * - FIPEX: 세부계정
- * - TEXT1: 계정명
+ * - GL: 계정
+ * - GL명: 계정명
  */
 
 import { useState, useCallback, useMemo, useTransition } from 'react'
@@ -52,7 +51,6 @@ export interface GlAccountSelectorProps {
 
 export interface GlAccountItem {
   saknr: string // 계정(G/L)
-  fipex: string // 세부계정
   text1: string // 계정명
   displayText: string // 표시용 텍스트
 }
@@ -76,7 +74,7 @@ export function GlAccountSelector({
   // GL 계정 선택 핸들러
   const handleCodeSelect = useCallback(async (code: GlAccount) => {
     // 이미 선택된 계정을 다시 선택하면 선택 해제
-    if (selectedCode && selectedCode.SAKNR === code.SAKNR && selectedCode.FIPEX === code.FIPEX) {
+    if (selectedCode && selectedCode.SAKNR === code.SAKNR) {
       onCodeSelect(undefined as any) // 선택 해제를 위해 undefined 전달
       setOpen(false)
       return
@@ -100,13 +98,6 @@ export function GlAccountSelector({
         <div className="font-mono text-sm">{row.getValue('SAKNR')}</div>
       ),
     },
-    {
-      accessorKey: 'FIPEX',
-      header: '세부계정',
-      cell: ({ row }) => (
-        <div className="font-mono text-sm">{row.getValue('FIPEX')}</div>
-      ),
-    },
     {
       accessorKey: 'TEXT1',
       header: '계정명',
@@ -206,7 +197,6 @@ export function GlAccountSelector({
           {selectedCode ? (
             <div className="flex items-center gap-2 w-full">
               <span className="font-mono text-sm">[{selectedCode.SAKNR}]</span>
-              <span className="font-mono text-sm">{selectedCode.FIPEX}</span>
               <span className="truncate flex-1 text-left">{selectedCode.TEXT1}</span>
               <Button
                 variant="ghost"
@@ -237,7 +227,7 @@ export function GlAccountSelector({
           <div className="flex items-center space-x-2">
             <Search className="h-4 w-4" />
             <Input
-              placeholder="계정, 세부계정, 계정명으로 검색..."
+              placeholder="계정, 계정명으로 검색..."
               value={globalFilter}
               onChange={(e) => handleSearchChange(e.target.value)}
               className="flex-1"
@@ -284,7 +274,7 @@ export function GlAccountSelector({
                             )}
                           </TableCell>
                         ))}
-                        {selectedCode && selectedCode.SAKNR === row.original.SAKNR && selectedCode.FIPEX === row.original.FIPEX && (
+                        {selectedCode && selectedCode.SAKNR === row.original.SAKNR && (
                           <TableCell className="text-right">
                             <span className="text-xs text-muted-foreground">(선택됨)</span>
                           </TableCell>
-- 
cgit v1.2.3

