mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 21:06:15 +02:00
services StockService#LocationExists: add method
This commit is contained in:
parent
d76b488a05
commit
47c5d440ed
|
|
@ -626,6 +626,12 @@ class StockService extends BaseService
|
||||||
return $productRow !== null;
|
return $productRow !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function LocationExists($locationId)
|
||||||
|
{
|
||||||
|
$locationRow = $this->Database->locations()->where('id = :1', $locationId)->fetch();
|
||||||
|
return $locationRow !== null;
|
||||||
|
}
|
||||||
|
|
||||||
private function ShoppingListExists($listId)
|
private function ShoppingListExists($listId)
|
||||||
{
|
{
|
||||||
$shoppingListRow = $this->Database->shopping_lists()->where('id = :1', $listId)->fetch();
|
$shoppingListRow = $this->Database->shopping_lists()->where('id = :1', $listId)->fetch();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user