From 4a5cd2e6a4fdb7a8a00c9404aa87b9e6e2a4ae2b Mon Sep 17 00:00:00 2001 From: "lucas.favaro" Date: Thu, 21 May 2026 18:34:00 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20final=20da=20query=20de?= =?UTF-8?q?=20detalhes=20do=20produto.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/products/products.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/products/products.module.ts b/src/products/products.module.ts index 0477575..8fafdf2 100644 --- a/src/products/products.module.ts +++ b/src/products/products.module.ts @@ -1096,8 +1096,8 @@ left join (select pvencto.nroempresa, ON vncto.nroempresa = pemp.nroempresa and vncto.seqproduto = pemp.seqproduto where md.nrodivisao in (1) -and pemp.seqproduto = 95799 -and me.nroempresa in (229,219,1,215,218,217,221,220,222,233) +and pemp.seqproduto = ${args.codproduto} +and me.nroempresa in ${args.ctx_user_companies_for_module} and pes2.qtdembalagem = (select nvl(max(pes3.qtdembalagem), 1) from consinco.mrl_prodempseg pes3 where pes3.nroempresa = pes.nroempresa