fix: refs #7283 item filters
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:
parent
21ddd3fcd0
commit
0180998683
|
@ -38,13 +38,23 @@ module.exports = Self => {
|
|||
type: 'integer',
|
||||
description: 'Type id',
|
||||
},
|
||||
{
|
||||
arg: 'producerFk',
|
||||
type: 'integer',
|
||||
description: 'Producer id',
|
||||
},
|
||||
{
|
||||
arg: 'instrastatFk',
|
||||
type: 'string',
|
||||
description: 'intrastat id',
|
||||
},
|
||||
{
|
||||
arg: 'isActive',
|
||||
type: 'boolean',
|
||||
description: 'Whether the item is or not active',
|
||||
},
|
||||
{
|
||||
arg: 'buyerFk',
|
||||
arg: 'workerFk',
|
||||
type: 'integer',
|
||||
description: 'The buyer of the item',
|
||||
},
|
||||
|
@ -126,14 +136,16 @@ module.exports = Self => {
|
|||
return {'i.stemMultiplier': value};
|
||||
case 'categoryFk':
|
||||
return {'ic.id': value};
|
||||
case 'buyerFk':
|
||||
case 'workerFk':
|
||||
return {'it.workerFk': value};
|
||||
case 'producerFk':
|
||||
return {'pr.id': value};
|
||||
case 'supplierFk':
|
||||
return {'s.id': value};
|
||||
case 'origin':
|
||||
return {'ori.code': value};
|
||||
case 'intrastat':
|
||||
return {'intr.description': value};
|
||||
case 'intrastatFk':
|
||||
return {'i.intrastatFk': value};
|
||||
case 'landed':
|
||||
return {'lb.landed': value};
|
||||
}
|
||||
|
@ -172,6 +184,7 @@ module.exports = Self => {
|
|||
u.name AS userName,
|
||||
ori.code AS origin,
|
||||
ic.name AS category,
|
||||
i.intrastatFk,
|
||||
intr.description AS intrastat,
|
||||
b.grouping,
|
||||
b.packing,
|
||||
|
|
Loading…
Reference in New Issue