Fixed shopping list print view table/list sorting (fixes #2602)

This commit is contained in:
Bernd Bestel
2024-11-08 16:40:30 +01:00
parent 1b8f4e6a4f
commit 11ea8f3716
4 changed files with 12 additions and 5 deletions

View File

@@ -393,7 +393,7 @@ class StockController extends BaseController
}
return $this->renderPage($response, 'shoppinglist', [
'listItems' => $this->getDatabase()->uihelper_shopping_list()->where('shopping_list_id = :1', $listId),
'listItems' => $this->getDatabase()->uihelper_shopping_list()->where('shopping_list_id = :1', $listId)->orderBy('product_name', 'COLLATE NOCASE'),
'products' => $this->getDatabase()->products()->where('active = 1')->orderBy('name', 'COLLATE NOCASE'),
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name', 'COLLATE NOCASE'),
'missingProducts' => $this->getStockService()->GetMissingProducts(),