From ddd2a96ac54cf6904d2441a7eda4fe2cf0139002 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 11 Nov 2025 11:52:05 +0000 Subject: [PATCH] Clearer message on no inventory to report --- app/Console/Commands/SendInventoryAlerts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/SendInventoryAlerts.php b/app/Console/Commands/SendInventoryAlerts.php index 2c270ca7b4..f099597d9b 100644 --- a/app/Console/Commands/SendInventoryAlerts.php +++ b/app/Console/Commands/SendInventoryAlerts.php @@ -52,7 +52,9 @@ class SendInventoryAlerts extends Command return new AlertRecipient($item); }); - \Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); + Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); + } else { + $this->info('No low inventory items found. No mail sent.'); } } else { if ($settings->alert_email == '') {