#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 2 additions and 0 deletions
Showing only changes of commit d6bea43731 - Show all commits

View File

@ -119,6 +119,7 @@ module.exports = Self => {
}
let correctings;
let correcteds;
if (args.correctedFk) {
correctings = await models.InvoiceInCorrection.find({
@ -154,6 +155,7 @@ 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)}};