From ec01c6b0c2f08ebe4b56cfe48379eb31b2fd3e63 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 7 Feb 2025 07:51:18 +0100 Subject: [PATCH 1/2] fix: fixed company filter --- modules/invoiceOut/back/methods/invoiceOut/filter.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/invoiceOut/back/methods/invoiceOut/filter.js b/modules/invoiceOut/back/methods/invoiceOut/filter.js index ab67821403..89cba2ac6d 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/filter.js +++ b/modules/invoiceOut/back/methods/invoiceOut/filter.js @@ -31,6 +31,11 @@ module.exports = Self => { type: 'integer', description: 'The client id', http: {source: 'query'} + }, { + arg: 'companyFk', + type: 'integer', + description: 'The company id', + http: {source: 'query'} }, { arg: 'fi', @@ -148,6 +153,7 @@ module.exports = Self => { i.hasPdf, i.customsAgentFk, c.socialName AS clientSocialName, + i.companyFk, co.code AS companyCode, ca.fiscalName AS customsAgentName FROM invoiceOut i From 200f159c6b41f2de51519a20ef3173d0bcff9b16 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 7 Feb 2025 07:55:08 +0100 Subject: [PATCH 2/2] fix: style --- modules/invoiceOut/back/methods/invoiceOut/filter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/invoiceOut/back/methods/invoiceOut/filter.js b/modules/invoiceOut/back/methods/invoiceOut/filter.js index 89cba2ac6d..9d18646765 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/filter.js +++ b/modules/invoiceOut/back/methods/invoiceOut/filter.js @@ -31,7 +31,8 @@ module.exports = Self => { type: 'integer', description: 'The client id', http: {source: 'query'} - }, { + }, + { arg: 'companyFk', type: 'integer', description: 'The company id',