Show optionally an icon on the stock overview page if the product is already on the shopping list (closes #708)

This commit is contained in:
Bernd Bestel
2020-04-13 18:47:41 +02:00
parent 840b35b30d
commit 1390c65864
7 changed files with 28 additions and 1 deletions

View File

@@ -25,7 +25,8 @@ class StockController extends BaseController
'nextXDays' => $nextXDays,
'productGroups' => $this->getDatabase()->product_groups()->orderBy('name'),
'userfields' => $this->getUserfieldsService()->GetFields('products'),
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('products')
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('products'),
'shoppingListItems' => $this->getDatabase()->shopping_list(),
]);
}