mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
001b953063
@ -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');
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user