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}};
case 'city':
return {or: [
{'c.city': {like: `%${value}`}},
{'a.city': {like: `%${value}`}}
{'c.city': {like: `%${value}%`}},
{'a.city': {like: `%${value}%`}}
]};
case 'postcode':
return {or: [
{'c.postcode': {like: `%${value}`}},
{'a.postalCode': {like: `%${value}`}}
{'c.postcode': value},
{'a.postalCode': value}
]};
case 'provinceFk':
return {or: [
{'p.name': {like: `%${value}`}},
{'a.provinceFk': {like: `%${value}`}}
{'p.id': value},
{'a.provinceFk': value}
]};
case 'name':
case 'salesPersonFk':