Merge pull request '#7648 - HOTFIX: Add args to filter shipped value' (!2791) from hotfix_myEntries into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2791 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
0ab40dbfb2
|
@ -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