Add a button to clear the whole shopping list

This commit is contained in:
Bernd Bestel
2018-07-15 08:29:26 +02:00
parent 734814d96b
commit be650d093d
8 changed files with 75 additions and 4 deletions

View File

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