From 28a69c8d2b7a029f3944596884c35fa08d7405c3 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Thu, 2 May 2019 13:25:41 +0200 Subject: [PATCH] #1350 route.index --- modules/route/back/methods/route/filter.js | 6 ++++++ modules/route/front/index/index.html | 1 + modules/route/front/index/index.js | 13 +++++++++++++ modules/route/front/search-panel/index.html | 8 ++++++++ 4 files changed, 28 insertions(+) diff --git a/modules/route/back/methods/route/filter.js b/modules/route/back/methods/route/filter.js index b45680642..1ea962bed 100644 --- a/modules/route/back/methods/route/filter.js +++ b/modules/route/back/methods/route/filter.js @@ -48,6 +48,11 @@ module.exports = Self => { type: 'Number', description: 'The m3 filter', http: {source: 'query'} + }, { + arg: 'warehouseFk', + type: 'Number', + description: 'The warehouse filter', + http: {source: 'query'} }, { arg: 'description', type: 'String', @@ -81,6 +86,7 @@ module.exports = Self => { case 'description': return {'r.description': {like: `%${value}%`}}; case 'workerFk': + case 'warehouseFk': case 'vehicleFk': case 'agencyModeFk': return {[param]: value}; diff --git a/modules/route/front/index/index.html b/modules/route/front/index/index.html index b9935ba45..f35988754 100644 --- a/modules/route/front/index/index.html +++ b/modules/route/front/index/index.html @@ -9,6 +9,7 @@
+ +