diff --git a/app/Services/TodayIssueObserverService.php b/app/Services/TodayIssueObserverService.php index 0033b2a..28a0ca5 100644 --- a/app/Services/TodayIssueObserverService.php +++ b/app/Services/TodayIssueObserverService.php @@ -63,7 +63,7 @@ public function handleOrderChange(Order $order): void 'client' => $clientName, 'amount' => $amount, ]), - path: '/sales/order-management-sales', + path: "/sales/order-management-sales/{$order->id}", needsApproval: false, expiresAt: Carbon::now()->addDays(7) ); @@ -107,7 +107,7 @@ public function handleBadDebtChange(BadDebt $badDebt): void 'amount' => $amount, 'days' => $days, ]), - path: '/accounting/receivables-status', + path: "/accounting/bad-debt-collection/{$badDebt->id}", needsApproval: false, expiresAt: null // 해결될 때까지 유지 ); @@ -141,7 +141,7 @@ public function handleStockChange(Stock $stock): void content: __('message.today_issue.safety_stock_alert', [ 'item' => $itemName, ]), - path: '/material/stock-status', + path: "/material/stock-status/{$stock->id}", needsApproval: false, expiresAt: null // 재고 보충 시까지 유지 ); @@ -249,7 +249,7 @@ public function handleClientCreated(Client $client): void content: __('message.today_issue.new_client', [ 'name' => $client->name, ]), - path: '/accounting/vendors', + path: "/accounting/vendors/{$client->id}", needsApproval: false, expiresAt: Carbon::now()->addDays(7) ); @@ -292,7 +292,7 @@ public function handleDepositCreated(Deposit $deposit): void 'client' => $clientName, 'amount' => $amount, ]), - path: '/accounting/deposit-management', + path: "/accounting/deposits/{$deposit->id}", needsApproval: false, expiresAt: Carbon::now()->addDays(7) ); @@ -335,7 +335,7 @@ public function handleWithdrawalCreated(Withdrawal $withdrawal): void 'client' => $clientName, 'amount' => $amount, ]), - path: '/accounting/withdrawal-management', + path: "/accounting/withdrawals/{$withdrawal->id}", needsApproval: false, expiresAt: Carbon::now()->addDays(7) );