Optionally show out of stock products on the location content sheet (closes #1641)

This commit is contained in:
Bernd Bestel
2022-04-01 21:55:06 +02:00
parent ebfc55064e
commit f7c33a4579
6 changed files with 42 additions and 3 deletions

View File

@@ -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']))
]);
}