fix: 출금 오늘의 이슈 path 분기 (1건: 상세, 2건+: 목록)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user