Merge pull request 'fix: monitorPayMethodFilter' (!3315) from warmfix-monitorPayMethodFilter into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #3315
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Carlos Satorres 2024-12-17 12:07:57 +00:00
commit 148b82ea93
1 changed files with 9 additions and 0 deletions

View File

@ -98,6 +98,11 @@ module.exports = Self => {
arg: 'countryFk',
type: 'number',
description: 'The country id filter'
},
{
arg: 'payMethod',
type: 'string',
description: 'The payment method filter'
}
],
returns: {
@ -165,6 +170,8 @@ module.exports = Self => {
case 'clientFk':
param = `t.${param}`;
return {[param]: value};
case 'payMethod':
return {'c.payMethodFk': value};
}
});
@ -205,6 +212,8 @@ module.exports = Self => {
u.name userName,
c.salesPersonFk,
c.credit,
c.payMethodFk payMethodFk,
pm.id payMethodId,
pm.name payMethod,
z.hour zoneLanding,
z.name zoneName,