fix: 장부 통합 report의 합계/지분 계산 보정#18
Merged
Merged
Conversation
- totalIncome/totalExpense/totalBalance를 요청 기간이 아닌 장부 전체 기간 합계로 변경 - monthly의 incomeShareOfPeriod/expenseShareOfPeriod 분모를 장부 전체 기간 합계로 변경 - categories의 단일 share 필드를 incomeShare/expenseShare로 분리 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
Author
|
dev에 직접 push로 전환합니다. |
Contributor
Author
|
dev에 직접 push 권한이 없어 PR로 진행합니다. |
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.
Summary
장부 통합 report API(
LedgerReportReader)의 다음 세 가지 동작을 수정합니다.totalIncome/totalExpense/totalBalance— 요청 기간이 아닌 장부 전체 기간 합계로 응답하도록 수정. 기존엔 요청 기간으로 필터링된filteredDetails기준으로 합산되어, 단일 월 요청 시 해당 월 합계만 응답됨.monthly[].incomeShareOfPeriod/expenseShareOfPeriod— 분모를 장부 전체 기간 합계로 변경. 기존엔 요청 기간 내부 합계가 분모라서 단일 월 요청 시 항상 1.0이 응답됨.categories[]— 단일share필드를incomeShare/expenseShare로 분리. 기존엔 income과 expense가 모두 있는 카테고리에서 expense 비율이 누락됨. 두 분모 모두 장부 전체 기간 합계 기준.MemberReport의incomeShare/expenseShare는 기존 의미(요청 기간 내부 비율)를 유지합니다.Test plan
totalIncome/totalExpense가 해당 월 합계가 아닌 장부 전체 합계로 응답되는지 확인monthly[0].incomeShareOfPeriod가 1.0이 아닌 (해당 월 / 장부 전체) 비율인지 확인categories[].share제거,incomeShare/expenseShare추가) 반영🤖 Generated with Claude Code