services StockService#LocationExists: add method

This commit is contained in:
Kurt Riddlesperger 2019-10-14 22:35:17 -05:00
parent d76b488a05
commit 47c5d440ed

View File

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