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':