feat(salix): #7648 Add args to filter shipped value
gitea/salix/pipeline/pr-master This commit looks good
Details
gitea/salix/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
f02c7a5ada
commit
7254abea40
|
@ -95,6 +95,16 @@ module.exports = Self => {
|
||||||
type: 'date',
|
type: 'date',
|
||||||
description: `The to date filter`
|
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',
|
arg: 'days',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
@ -133,8 +143,12 @@ module.exports = Self => {
|
||||||
return {'e.created': {gte: value}};
|
return {'e.created': {gte: value}};
|
||||||
case 'from':
|
case 'from':
|
||||||
return {'t.landed': {gte: value}};
|
return {'t.landed': {gte: value}};
|
||||||
|
case 'fromShipped':
|
||||||
|
return {'t.shipped': {gte: value}};
|
||||||
case 'to':
|
case 'to':
|
||||||
return {'t.landed': {lte: value}};
|
return {'t.landed': {lte: value}};
|
||||||
|
case 'toShipped':
|
||||||
|
return {'t.shipped': {lte: value}};
|
||||||
case 'id':
|
case 'id':
|
||||||
case 'isBooked':
|
case 'isBooked':
|
||||||
case 'isConfirmed':
|
case 'isConfirmed':
|
||||||
|
|
Loading…
Reference in New Issue