Merge pull request 'Hotfix[InvoiceOutList]: Fixed company filter' (!3424) from Hotfix-InvoiceOutCompanyFilter into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #3424
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Jon Elias 2025-02-07 07:12:33 +00:00
commit 18fe468623
1 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,12 @@ module.exports = Self => {
description: 'The client id', description: 'The client id',
http: {source: 'query'} http: {source: 'query'}
}, },
{
arg: 'companyFk',
type: 'integer',
description: 'The company id',
http: {source: 'query'}
},
{ {
arg: 'fi', arg: 'fi',
type: 'string', type: 'string',
@ -148,6 +154,7 @@ module.exports = Self => {
i.hasPdf, i.hasPdf,
i.customsAgentFk, i.customsAgentFk,
c.socialName AS clientSocialName, c.socialName AS clientSocialName,
i.companyFk,
co.code AS companyCode, co.code AS companyCode,
ca.fiscalName AS customsAgentName ca.fiscalName AS customsAgentName
FROM invoiceOut i FROM invoiceOut i