#7864 - 7864_testToMaster_2434 #2867

Merged
jsegarra merged 139 commits from 7864_testToMaster_2434 into master 2024-08-20 06:33:22 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit afc5615140 - Show all commits

View File

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