#7197 filter by correcting & supplierActivity #2641
|
@ -87,6 +87,10 @@ module.exports = Self => {
|
||||||
{
|
{
|
||||||
arg: 'correctingFk',
|
arg: 'correctingFk',
|
||||||
type: 'Boolean',
|
type: 'Boolean',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
arg: 'supplierActivityFk',
|
||||||
|
type: 'string',
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
returns: {
|
returns: {
|
||||||
|
@ -155,6 +159,8 @@ module.exports = Self => {
|
||||||
: {'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':
|
||||||
|
return {'s.supplierActivityFk': value};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue