diff --git a/modules/invoiceOut/back/methods/invoiceOut/filter.js b/modules/invoiceOut/back/methods/invoiceOut/filter.js index a0da914f8..8b6d00763 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/filter.js +++ b/modules/invoiceOut/back/methods/invoiceOut/filter.js @@ -92,6 +92,7 @@ module.exports = Self => { case 'companyFk': case 'issued': case 'dued': + param = `i.${param}`; return {[param]: value}; } }); diff --git a/modules/route/back/methods/route/filter.js b/modules/route/back/methods/route/filter.js index 1ea962bed..eeeef1dac 100644 --- a/modules/route/back/methods/route/filter.js +++ b/modules/route/back/methods/route/filter.js @@ -85,10 +85,13 @@ module.exports = Self => { return {'r.m3': value}; case 'description': return {'r.description': {like: `%${value}%`}}; - case 'workerFk': case 'warehouseFk': + param = `v.${param}`; + return {[param]: value}; + case 'workerFk': case 'vehicleFk': case 'agencyModeFk': + param = `r.${param}`; return {[param]: value}; } });