fix(WEB): 기타 버그 수정 및 개선

- CardTransactionInquiry: account_code 'unset' 처리 개선
- WorkOrderCreate: DevFill 공정 옵션 로딩 타이밍 수정
- accountingData: 생성기 개선
- api/errors: 에러 처리 개선
This commit is contained in:
2026-01-22 23:19:54 +09:00
parent c8890c1a85
commit e7fb3b1f96
5 changed files with 51 additions and 13 deletions

View File

@@ -48,13 +48,14 @@ export function createAuthErrorResponse(message?: string): ApiErrorResponse {
/**
* 일반 API 에러 응답 생성 헬퍼
* - 디버깅을 위해 상태 코드를 메시지에 포함
*/
export function createErrorResponse(status: number, message: string, code?: string): ApiErrorResponse {
return {
__error: true,
__authError: status === 401,
status,
message,
message: `[${status}] ${message}`,
code,
};
}