diff --git a/controllers/StockController.php b/controllers/StockController.php index 408c29c7..835b6d06 100644 --- a/controllers/StockController.php +++ b/controllers/StockController.php @@ -93,7 +93,8 @@ 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(isset($request->getQueryParams()['include_out_of_stock'])) + 'currentStockLocationContent' => $this->getStockService()->GetCurrentStockLocationContent(isset($request->getQueryParams()['include_out_of_stock'])), + 'includeOutOfStockProductsAtTheDefaultLocation' => isset($request->getQueryParams()['include_out_of_stock']) ]); } diff --git a/views/locationcontentsheet.blade.php b/views/locationcontentsheet.blade.php index 12337bf0..fb5d6245 100644 --- a/views/locationcontentsheet.blade.php +++ b/views/locationcontentsheet.blade.php @@ -40,7 +40,7 @@ + @if(!$includeOutOfStockProductsAtTheDefaultLocation) checked @endif>