update: inventory manage

This commit is contained in:
tokumeikoi 2022-07-03 03:11:57 +08:00
parent 90b5364039
commit 7713489945
3 changed files with 4 additions and 4 deletions

View File

@ -15,13 +15,13 @@ class PlanService
public function incrementInventory(): bool
{
if ($this->plan->inventory_limit !== NULL) return true;
if ($this->plan->inventory_limit === NULL) return true;
return $this->plan->increment('inventory_limit');
}
public function decrementInventory(): bool
{
if ($this->plan->inventory_limit !== NULL) return true;
if ($this->plan->inventory_limit === NULL) return true;
return $this->plan->decrement('inventory_limit');
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long