Merge pull request 'fix: some params' (!3384) from warmfix_customer_filters into test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3384 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
3bf47af774
|
@ -43,6 +43,14 @@ module.exports = Self => {
|
||||||
arg: 'postcode',
|
arg: 'postcode',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
arg: 'sageTransactionTypeFk',
|
||||||
|
type: 'number',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
arg: 'sageTaxTypeFk',
|
||||||
|
type: 'number',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
arg: 'provinceFk',
|
arg: 'provinceFk',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
@ -79,6 +87,10 @@ module.exports = Self => {
|
||||||
return /^\d+$/.test(value)
|
return /^\d+$/.test(value)
|
||||||
? {'c.id': {inq: value}}
|
? {'c.id': {inq: value}}
|
||||||
: {'c.name': {like: `%${value}%`}};
|
: {'c.name': {like: `%${value}%`}};
|
||||||
|
case 'sageTaxTypeFk':
|
||||||
|
return {'sti.CodigoIva': value};
|
||||||
|
case 'sageTransactionTypeFk':
|
||||||
|
return {'stt.CodigoTransaccion': value};
|
||||||
case 'name':
|
case 'name':
|
||||||
case 'salesPersonFk':
|
case 'salesPersonFk':
|
||||||
case 'fi':
|
case 'fi':
|
||||||
|
|
Loading…
Reference in New Issue