mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Add a button to clear the whole shopping list
This commit is contained in:
@@ -203,6 +203,11 @@ class StockService extends BaseService
|
||||
}
|
||||
}
|
||||
|
||||
public function ClearShoppingList()
|
||||
{
|
||||
$this->Database->shopping_list()->delete();
|
||||
}
|
||||
|
||||
private function ProductExists($productId)
|
||||
{
|
||||
$productRow = $this->Database->products()->where('id = :1', $productId)->fetch();
|
||||
|
Reference in New Issue
Block a user