[Fix] 주간/월간 캘린더 총 근무시간·예상 근무비 계산 오류 수정 (#55)#73
Merged
Conversation
ded7b22 to
9b87852
Compare
wonyeoe
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Issue number and Link
closed #55
#55
✏️ Summary
근로자 주간/월간 캘린더 상단 요약에서 총 근무시간·예상 근무비 값이 잘못 계산되던 버그 수정.
totalSalary합산 (DELETED 제외)으로 수정totalSalary를 계산해 반환하도록 수정됨 (머지 완료) → 프론트에서hourlyWage × 시간추정 없이 백엔드 계산값을 그대로 사용📝 Changes
src/utils/workSummary.ts(신규):calculateWorkSummary유틸 함수. DELETED 제외, COMPLETED만 시간 합산, COMPLETED+SCHEDULED totalSalary 합산.src/screens/worker/WorkerWeeklyCalendarScreen.tsx: 인라인 합산 로직 →calculateWorkSummary+useMemo로 교체src/screens/worker/WorkerMonthlyCalendarScreen.tsx: 동일한 버그 패턴이 존재하여 함께 수정🔎 PR Type
📸 Screenshot