feat: 회계/결재/생산/출하/대시보드 다수 개선 및 QA 수정
- BadDebtCollection, BillManagement, CardTransaction, TaxInvoice 회계 개선 - VendorManagement/VendorDetailClient 소폭 추가 - DocumentCreate/DraftBox 결재 기능 개선 - WorkOrder Create/Detail/Edit, ShipmentEdit 생산/출하 개선 - CEO 대시보드: PurchaseStatusSection, receivable/status-issue transformer 정비 - dashboard types/invalidation 확장 - LoginPage, Sidebar, HeaderFavoritesBar 레이아웃 수정 - QMS 페이지, StockStatusDetail, OrderRegistration 소폭 수정 - AttendanceManagement, VacationManagement HR 수정 - ConstructionDetailClient 건설 상세 개선 - claudedocs: 주간 구현내역, 대시보드 QA/수정계획, 결재/품질/생산/출하 문서 추가
This commit is contained in:
@@ -248,12 +248,14 @@ export function generatePurchaseApprovalData(options: GeneratePurchaseApprovalDa
|
||||
const { vendors = SAMPLE_VENDORS, documentType = 'proposal' } = options;
|
||||
const vendor = randomPick(vendors);
|
||||
|
||||
// 현재 사용자를 결재선에 추가 (기본값: 홍길동)
|
||||
// 현재 사용자를 결재선에 추가 (기본값: 로그인 사용자 정보)
|
||||
const userDataStr = typeof window !== 'undefined' ? localStorage.getItem('user') : null;
|
||||
const userData = userDataStr ? JSON.parse(userDataStr) : null;
|
||||
const currentUser: ApprovalPerson = options.currentUser || {
|
||||
id: 'user-1',
|
||||
department: '개발팀',
|
||||
position: '사원',
|
||||
name: '홍길동',
|
||||
id: userData?.id || 'user-1',
|
||||
department: userData?.department || '',
|
||||
position: userData?.position || '',
|
||||
name: userData?.name || '',
|
||||
};
|
||||
|
||||
// 경리/회계/재무 직원 중 랜덤으로 1명 참조 추가
|
||||
|
||||
Reference in New Issue
Block a user