fix(WEB): 대시보드 - 접대비 현황 모달 클릭 오류 수정

- API 카드 ID와 config ID 불일치 문제 해결
- et1~et4 → et_sales, et_limit, et_remaining, et_used로 변경
This commit is contained in:
2026-01-23 13:12:20 +09:00
parent 82d21e9fe9
commit 297c6b7ef6

View File

@@ -134,12 +134,12 @@ const entertainmentDetailConfig: DetailModalConfig = {
/**
* 접대비 현황 모달 설정
* et1: 당해 매출 상세
* et2, et3, et4: 접대비 상세 (공통)
* et_sales: 당해 매출 상세
* et_limit, et_remaining, et_used: 접대비 상세 (공통)
*/
export function getEntertainmentModalConfig(cardId: string): DetailModalConfig | null {
const configs: Record<string, DetailModalConfig> = {
et1: {
et_sales: {
title: '당해 매출 상세',
summaryCards: [
{ label: '당해년도 매출', value: 600000000, unit: '원' },
@@ -221,10 +221,10 @@ export function getEntertainmentModalConfig(cardId: string): DetailModalConfig |
totalColumnKey: 'amount',
},
},
// et2, et3, et4는 모두 동일한 접대비 상세 모달
et2: entertainmentDetailConfig,
et3: entertainmentDetailConfig,
et4: entertainmentDetailConfig,
// et_limit, et_remaining, et_used는 모두 동일한 접대비 상세 모달
et_limit: entertainmentDetailConfig,
et_remaining: entertainmentDetailConfig,
et_used: entertainmentDetailConfig,
};
return configs[cardId] || null;