refs #6220 fix(client_filter): fix where
This commit is contained in:
parent
cfa08963fb
commit
bbb9f58a9e
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue