Conversation
#485 후속. 환불 시 Settlement.status='Refunded'로 전이됐으나 정산 통계가 status 무관 단순 합계라 매출이 부풀려 표시되던 문제 정정. ### GET /api/settlements/yearly - aggregateYearlyTotals 쿼리: - succeeded_amount = Succeed만 (환불 제외) - refunded_amount, refunded_count 신규 컬럼 추가 - total_settled를 succeeded_amount로 통일 (net = 환불 제외) - total_sales는 그대로 gross (Purchase.amount 합계, 환불 포함) — 비교용 유지 - DTO: refunded_amount, refunded_count 추가 ### GET /api/settlements/sales/monthly - service 합산 시 status==='Refunded' 분리: - refunded_count, refunded_amount 별도 누적 - total_settled는 환불 제외 누적 (net) - DTO: summary에 refunded_count, refunded_amount 추가 - items.status enum에 'Refunded' 추가 ### GET /api/settlements/pending-amount - 변경 없음 (이미 status='Pending'만 필터) ### Swagger - 두 API 응답 schema 갱신, status enum에 Refunded 추가 환수 자동화(Payple 지급이체 차감/SettlementAdjustment)는 별도 이슈로 분리.
[FEAT] 정산 통계에서 환불(Refunded) 거래 분리 표시 (#488)
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.
📌 기능 설명
📌 구현 내용
📌 구현 결과
📌 논의하고 싶은 점