From d3825e4bfb230b33b91ea43d1181030b2382a2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Wed, 28 Jan 2026 21:40:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A7=A4=EC=9E=85=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20=EC=8B=9C=20=EC=95=8C=EB=A6=BC/=ED=91=B8=EC=8B=9C=20?= =?UTF-8?q?=EB=B0=9C=EC=86=A1=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - handleExpectedExpenseChange()에서 source_type이 'purchases'인 경우 알림 제외 - 매입 알림은 결재 상신 시에만 발송되도록 변경 Co-Authored-By: Claude Opus 4.5 --- app/Services/TodayIssueObserverService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Services/TodayIssueObserverService.php b/app/Services/TodayIssueObserverService.php index 71e7cd3..b3c6aa5 100644 --- a/app/Services/TodayIssueObserverService.php +++ b/app/Services/TodayIssueObserverService.php @@ -170,6 +170,12 @@ public function handleStockDeleted(Stock $stock): void */ public function handleExpectedExpenseChange(ExpectedExpense $expense): void { + // 매입(purchases)에서 동기화된 예상 지출은 알림 제외 + // 매입 알림은 결재 상신 시에만 발송 + if ($expense->source_type === 'purchases') { + return; + } + // 승인 대기 상태인 경우만 이슈 생성 if ($expense->payment_status === 'pending') { $title = $expense->description ?? __('message.today_issue.expense_item');