#1758 Añadir los alias como prefijos en los filtros

This commit is contained in:
Bernat 2019-10-16 08:08:10 +02:00
parent 6ed5695063
commit 061e978a26
2 changed files with 5 additions and 1 deletions

View File

@ -92,6 +92,7 @@ module.exports = Self => {
case 'companyFk':
case 'issued':
case 'dued':
param = `i.${param}`;
return {[param]: value};
}
});

View File

@ -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};
}
});