From ec01c6b0c2f08ebe4b56cfe48379eb31b2fd3e63 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 7 Feb 2025 07:51:18 +0100 Subject: [PATCH] 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 ab6782140..89cba2ac6 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