Merge pull request 'fixes #4871 socialName-on-client-filter' (!1179) from 4871-socialName-on-client-filter into dev
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
Reviewed-on: #1179 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
9d65d42922
|
@ -91,7 +91,10 @@ module.exports = Self => {
|
|||
case 'search':
|
||||
return /^\d+$/.test(value)
|
||||
? {'c.id': {inq: value}}
|
||||
: {'c.name': {like: `%${value}%`}};
|
||||
: {or: [
|
||||
{'c.name': {like: `%${value}%`}},
|
||||
{'c.socialName': {like: `%${value}%`}},
|
||||
]};
|
||||
case 'name':
|
||||
case 'salesPersonFk':
|
||||
case 'fi':
|
||||
|
|
Loading…
Reference in New Issue