refs #6220 fix(client_filter): fix where

This commit is contained in:
Carlos Satorres 2023-12-14 14:37:14 +01:00
parent cfa08963fb
commit bbb9f58a9e
1 changed files with 6 additions and 6 deletions

View File

@ -113,18 +113,18 @@ module.exports = Self => {
return {'a.postalCode': {inq: postalCode}}; return {'a.postalCode': {inq: postalCode}};
case 'city': case 'city':
return {or: [ return {or: [
{'c.city': {like: `%${value}`}}, {'c.city': {like: `%${value}%`}},
{'a.city': {like: `%${value}`}} {'a.city': {like: `%${value}%`}}
]}; ]};
case 'postcode': case 'postcode':
return {or: [ return {or: [
{'c.postcode': {like: `%${value}`}}, {'c.postcode': value},
{'a.postalCode': {like: `%${value}`}} {'a.postalCode': value}
]}; ]};
case 'provinceFk': case 'provinceFk':
return {or: [ return {or: [
{'p.name': {like: `%${value}`}}, {'p.id': value},
{'a.provinceFk': {like: `%${value}`}} {'a.provinceFk': value}
]}; ]};
case 'name': case 'name':
case 'salesPersonFk': case 'salesPersonFk':