From 32893b49c1d07d6d350306b10139d5634b2f63b3 Mon Sep 17 00:00:00 2001 From: Gerard Date: Tue, 5 Mar 2019 12:13:46 +0100 Subject: [PATCH] #1174 item.index buscador avanzado mostrar comprador --- modules/item/back/methods/item/filter.js | 7 +++++++ modules/item/front/index/index.html | 2 +- modules/item/front/search-panel/index.html | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/item/back/methods/item/filter.js b/modules/item/back/methods/item/filter.js index 0aa8808b1..f92248037 100644 --- a/modules/item/back/methods/item/filter.js +++ b/modules/item/back/methods/item/filter.js @@ -48,6 +48,11 @@ module.exports = Self => { type: 'Boolean', description: 'Whether the the item is o not active', http: {source: 'query'} + }, { + arg: 'salesPersonFk', + type: 'Integer', + description: 'The buyer of the item', + http: {source: 'query'} } ], returns: { @@ -75,6 +80,8 @@ module.exports = Self => { return {'i.description': {like: `%${value}%`}}; case 'categoryFk': return {'ic.id': value}; + case 'salesPersonFk': + return {'t.workerFk': value}; case 'typeFk': return {'i.typeFk': value}; case 'isActive': diff --git a/modules/item/front/index/index.html b/modules/item/front/index/index.html index 6f748a752..88f8fb5bc 100644 --- a/modules/item/front/index/index.html +++ b/modules/item/front/index/index.html @@ -32,7 +32,7 @@ Category Intrastat Origin - Sales person + Buyer Density Tax class Active diff --git a/modules/item/front/search-panel/index.html b/modules/item/front/search-panel/index.html index e3cb1f3d2..fca01dc2a 100644 --- a/modules/item/front/search-panel/index.html +++ b/modules/item/front/search-panel/index.html @@ -46,6 +46,17 @@ label="Description" model="filter.description"> + +