Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 7283-itemSectionsMigration
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
commit
4a76a7554e
|
@ -119,6 +119,7 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
|
|
||||||
let correctings;
|
let correctings;
|
||||||
|
|
||||||
let correcteds;
|
let correcteds;
|
||||||
if (args.correctedFk) {
|
if (args.correctedFk) {
|
||||||
correctings = await models.InvoiceInCorrection.find({
|
correctings = await models.InvoiceInCorrection.find({
|
||||||
|
@ -154,6 +155,7 @@ 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)}};
|
||||||
|
|
Loading…
Reference in New Issue