From 902714ba7da69bfeed4c93d8f8c4a87dfd5ec85f Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 3 Feb 2022 10:32:59 +0100 Subject: [PATCH] feat(item_index): add producer basic filter --- modules/item/front/index/index.html | 2 +- modules/item/front/index/index.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/item/front/index/index.html b/modules/item/front/index/index.html index 1456c74ef..750dbfc4d 100644 --- a/modules/item/front/index/index.html +++ b/modules/item/front/index/index.html @@ -125,7 +125,7 @@ ng-model="::item.isActive"> - {{::item.producer}} + {{::item.producer | dashIfEmpty}} {{::item.landed | date:'dd/MM/yyyy'}} diff --git a/modules/item/front/index/index.js b/modules/item/front/index/index.js index 915027c3c..d9e00305d 100644 --- a/modules/item/front/index/index.js +++ b/modules/item/front/index/index.js @@ -81,6 +81,8 @@ class Controller extends Section { return {'intr.description': value}; case 'name': return {'i.name': {like: `%${value}%`}}; + case 'producer': + return {'pr.name': {like: `%${value}%`}}; case 'id': case 'size': case 'subname':