mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Optionally show out of stock products on the location content sheet (closes #1641)
This commit is contained in:
@@ -72,7 +72,7 @@ class StockController extends BaseController
|
||||
'products' => $this->getDatabase()->products()->where('active = 1')->orderBy('name', 'COLLATE NOCASE'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name', 'COLLATE NOCASE'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name', 'COLLATE NOCASE'),
|
||||
'currentStockLocationContent' => $this->getStockService()->GetCurrentStockLocationContent()
|
||||
'currentStockLocationContent' => $this->getStockService()->GetCurrentStockLocationContent(isset($request->getQueryParams()['include_out_of_stock']))
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user