#7648 - HOTFIX: Add args to filter shipped value #2791
|
@ -95,6 +95,16 @@ module.exports = Self => {
|
|||
type: 'date',
|
||||
description: `The to date filter`
|
||||
},
|
||||
{
|
||||
arg: 'fromShipped',
|
||||
type: 'date',
|
||||
description: `The from shipped date filter`
|
||||
},
|
||||
{
|
||||
arg: 'toShipped',
|
||||
type: 'date',
|
||||
description: `The to shipped date filter`
|
||||
},
|
||||
{
|
||||
arg: 'days',
|
||||
type: 'number',
|
||||
|
@ -133,8 +143,12 @@ module.exports = Self => {
|
|||
return {'e.created': {gte: value}};
|
||||
case 'from':
|
||||
return {'t.landed': {gte: value}};
|
||||
case 'fromShipped':
|
||||
return {'t.shipped': {gte: value}};
|
||||
case 'to':
|
||||
return {'t.landed': {lte: value}};
|
||||
case 'toShipped':
|
||||
return {'t.shipped': {lte: value}};
|
||||
case 'id':
|
||||
case 'isBooked':
|
||||
case 'isConfirmed':
|
||||
|
|
Loading…
Reference in New Issue