From d76db10e672eda424c81cfe0a2eed8aa2f0aa316 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 7 Feb 2025 13:39:53 +0100 Subject: [PATCH] fix: fixed item name filter --- modules/item/back/methods/fixed-price/filter.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/item/back/methods/fixed-price/filter.js b/modules/item/back/methods/fixed-price/filter.js index 488c2441d..cd9fa08ba 100644 --- a/modules/item/back/methods/fixed-price/filter.js +++ b/modules/item/back/methods/fixed-price/filter.js @@ -22,6 +22,11 @@ module.exports = Self => { type: 'integer', description: 'The item id', }, + { + arg: 'name', + type: 'string', + description: 'The item name', + }, { arg: 'typeFk', type: 'integer', @@ -112,6 +117,8 @@ module.exports = Self => { : {'it.code': {like: `%${value}%`}}; case 'categoryFk': return {'it.categoryFk': value}; + case 'name': + return {'i.name': {like: `%${value}%`}}; case 'buyerFk': return {'it.workerFk': value}; case 'warehouseFk':