Add possibility to filter products by location (references #10)

This commit is contained in:
Bernd Bestel
2018-07-08 15:16:24 +02:00
parent 92e648490a
commit ecf96252b9
5 changed files with 47 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ class StockController extends BaseController
return $this->AppContainer->view->render($response, 'stockoverview', [
'products' => $this->Database->products()->orderBy('name'),
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
'locations' => $this->Database->locations()->orderBy('name'),
'currentStock' => $currentStock,
'missingProducts' => $this->StockService->GetMissingProducts(),
'nextXDays' => $nextXDays,