refactor(WEB): 회계/견적/설정/생산 등 전반적 코드 개선 및 공통화 2차

- 회계 모듈 전면 개선: 청구/입금/출금/매입/매출/세금계산서/일반전표/거래처원장 등
- 견적 모듈 금액 포맷/할인/수식/미리보기 등 코드 정리
- 설정 모듈: 계정관리/직급/직책/권한 상세 간소화
- 생산 모듈: 작업지시서/작업자화면/검수 문서 코드 정리
- UniversalListPage 엑셀 다운로드 및 필터 기능 확장
- 대시보드/게시판/수주 등 날짜 유틸 공통화 적용
- claudedocs 문서 인덱스 업데이트

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-02-20 10:45:47 +09:00
parent 71352923c8
commit f344dc7d00
123 changed files with 877 additions and 789 deletions

View File

@@ -2,6 +2,7 @@
import { useState, useEffect, useCallback } from 'react';
import { toast } from 'sonner';
import { formatNumber } from '@/lib/utils/amount';
import { Loader2 } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Label } from '@/components/ui/label';
@@ -26,6 +27,7 @@ import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';
import type { ManualInputFormData } from './types';
import { DEDUCTION_OPTIONS, ACCOUNT_SUBJECT_OPTIONS } from './types';
import { getCardList, createCardTransaction } from './actions';
import { getTodayString } from '@/lib/utils/date';
interface ManualInputModalProps {
open: boolean;
@@ -35,7 +37,7 @@ interface ManualInputModalProps {
const initialFormData: ManualInputFormData = {
cardId: '',
usedDate: new Date().toISOString().slice(0, 10),
usedDate: getTodayString(),
usedTime: '',
approvalNumber: '',
approvalType: 'approved',
@@ -297,7 +299,7 @@ export function ManualInputModal({ open, onOpenChange, onSuccess }: ManualInputM
{/* 합계 금액 */}
<div className="bg-muted/50 rounded-lg p-3 flex items-center justify-between">
<span className="text-sm font-medium"> ( + )</span>
<span className="text-lg font-bold">{totalAmount.toLocaleString()}</span>
<span className="text-lg font-bold">{formatNumber(totalAmount)}</span>
</div>
</div>