#6900 fix: #6900 rectificative filter
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-08-08 12:14:44 +02:00
parent dd6aa6b1dd
commit afc5615140
1 changed files with 3 additions and 2 deletions

View File

@ -154,9 +154,10 @@ module.exports = Self => {
case 'awbCode':
return {'sub.code': value};
case 'correctingFk':
if (!correcteds.length && !args.correctingFk) return;
return args.correctingFk
? {'ii.id': {inq: correcteds.map(x => x.correctingFk)}}
: {'ii.id': {nin: correcteds.map(x => x.correctingFk)}};
? {['ii.id']: {inq: correcteds.map(x => x.correctingFk)}}
: {['ii.id']: {nin: correcteds.map(x => x.correctingFk)}};
case 'correctedFk':
return {'ii.id': {inq: correctings.map(x => x.correctingFk)}};
case 'supplierActivityFk':