diff --git a/app/Jobs/Inventory/AdjustProductInventory.php b/app/Jobs/Inventory/AdjustProductInventory.php index e46ac69398f4..34d7a6192a9d 100644 --- a/app/Jobs/Inventory/AdjustProductInventory.php +++ b/app/Jobs/Inventory/AdjustProductInventory.php @@ -115,9 +115,6 @@ class AdjustProductInventory implements ShouldQueue $p->in_stock_quantity -= $i->quantity; $p->saveQuietly(); - nlog("threshold ".$p->stock_notification_threshold); - nlog("stock q".$p->in_stock_quantity); - nlog("p stock not".$p->stock_notification_threshold); if ($this->company->stock_notification && $p->stock_notification && $p->stock_notification_threshold && $p->in_stock_quantity <= $p->stock_notification_threshold) { $this->notifyStockLevels($p, 'product'); diff --git a/routes/client.php b/routes/client.php index 0af6e33829f0..80f9b60549a2 100644 --- a/routes/client.php +++ b/routes/client.php @@ -142,7 +142,7 @@ Route::get('phantom/{entity}/{invitation_key}', [Phantom::class, 'displayInvitat Route::fallback(function () { - if (Ninja::isSelfHost() && Account::first()->set_react_as_default_ap) { + if (Ninja::isSelfHost() && Account::first()?->set_react_as_default_ap) { $account = Account::first();