diff --git a/app/Services/TodayIssueObserverService.php b/app/Services/TodayIssueObserverService.php index 7ac892e..7f8bc4d 100644 --- a/app/Services/TodayIssueObserverService.php +++ b/app/Services/TodayIssueObserverService.php @@ -441,18 +441,20 @@ private function upsertWithdrawalDailyIssue(int $tenantId): void ?: $first->merchant_name ?: __('message.today_issue.unknown_client'); - // 1건이면 단건 메시지, 2건 이상이면 누계 메시지 + // 1건이면 단건 메시지+상세경로, 2건 이상이면 누계 메시지+목록경로 if ($count === 1) { $content = __('message.today_issue.withdrawal_registered', [ 'client' => $firstClientName, 'amount' => number_format($totalAmount), ]); + $path = "/accounting/withdrawals/{$first->id}"; } else { $content = __('message.today_issue.withdrawal_daily_summary', [ 'client' => $firstClientName, 'count' => $count - 1, 'amount' => number_format($totalAmount), ]); + $path = '/accounting/withdrawals'; } // source_id=null 로 일일 1건 upsert (FCM 미발송) @@ -462,7 +464,7 @@ private function upsertWithdrawalDailyIssue(int $tenantId): void sourceId: null, badge: TodayIssue::BADGE_WITHDRAWAL, content: $content, - path: '/accounting/withdrawals', + path: $path, needsApproval: false, expiresAt: Carbon::now()->addDays(7) );