diff --git a/services/StockService.php b/services/StockService.php index a4f0be39..18a7b5eb 100644 --- a/services/StockService.php +++ b/services/StockService.php @@ -626,6 +626,12 @@ class StockService extends BaseService return $productRow !== null; } + private function LocationExists($locationId) + { + $locationRow = $this->Database->locations()->where('id = :1', $locationId)->fetch(); + return $locationRow !== null; + } + private function ShoppingListExists($listId) { $shoppingListRow = $this->Database->shopping_lists()->where('id = :1', $listId)->fetch();