fixes #4871 socialName-on-client-filter #1179

Merged
pau merged 5 commits from 4871-socialName-on-client-filter into dev 2022-11-30 06:41:05 +00:00
1 changed files with 4 additions and 1 deletions

View File

@ -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':