Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into 8452-testToMaster
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-28 07:36:10 +01:00
commit 7b8ddef4c2
1 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,14 @@ module.exports = Self => {
arg: 'postcode',
type: 'string',
},
{
arg: 'sageTransactionTypeFk',
type: 'number',
},
{
arg: 'sageTaxTypeFk',
type: 'number',
},
{
arg: 'provinceFk',
type: 'number',
@ -79,6 +87,10 @@ module.exports = Self => {
return /^\d+$/.test(value)
? {'c.id': {inq: value}}
: {'c.name': {like: `%${value}%`}};
case 'sageTaxTypeFk':
return {'sti.CodigoIva': value};
case 'sageTransactionTypeFk':
return {'stt.CodigoTransaccion': value};
case 'name':
case 'salesPersonFk':
case 'fi':