Merge pull request #8436 from turbo124/v5-develop

minor fixes
This commit is contained in:
David Bomba 2023-04-15 08:54:26 +10:00 committed by GitHub
commit 001b953063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -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');

View File

@ -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();