From fe5a77257f994810340f6fb558f28ff9cbc75ef5 Mon Sep 17 00:00:00 2001 From: Bernat Date: Tue, 15 Oct 2019 08:32:25 +0200 Subject: [PATCH] =?UTF-8?q?#1758=20A=C3=B1adir=20los=20alias=20como=20pref?= =?UTF-8?q?ijos=20en=20los=20filtros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/invoiceOut/back/methods/invoiceOut/filter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/invoiceOut/back/methods/invoiceOut/filter.js b/modules/invoiceOut/back/methods/invoiceOut/filter.js index 092d298d0..a0da914f8 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/filter.js +++ b/modules/invoiceOut/back/methods/invoiceOut/filter.js @@ -77,11 +77,11 @@ module.exports = Self => { let where = buildFilter(ctx.args, (param, value) => { switch (param) { case 'search': - return {ref: {like: `%${value}%`}}; + return {'i.ref': {like: `%${value}%`}}; case 'min': - return {amount: {gte: value}}; + return {'i.amount': {gte: value}}; case 'max': - return {amount: {lte: value}}; + return {'i.amount': {lte: value}}; case 'hasPdf': return {'i.hasPdf': value}; case 'created':