Added columns for last price on shopping list (closes #410)

This commit is contained in:
Bernd Bestel
2020-12-19 17:55:49 +01:00
parent 7f24ffc484
commit f5e0709913
6 changed files with 38 additions and 2 deletions

View File

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