mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Display total cost of recipes based on last purchase prices (closes #128)
This commit is contained in:
@@ -26,6 +26,12 @@ class StockService extends BaseService
|
||||
return $this->DatabaseService->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ);
|
||||
}
|
||||
|
||||
public function GetCurrentProductPrices()
|
||||
{
|
||||
$sql = 'SELECT * FROM products_current_price';
|
||||
return $this->DatabaseService->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ);
|
||||
}
|
||||
|
||||
public function GetMissingProducts()
|
||||
{
|
||||
$sql = 'SELECT * FROM stock_missing_products';
|
||||
|
Reference in New Issue
Block a user