From 7d15179fc810976c34c1c15ea45e39e0f07f8171 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 12 Mar 2026 20:13:40 -0300 Subject: [PATCH] fix detalhe product sql --- src/products/products.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/products/products.module.ts b/src/products/products.module.ts index 6a9b8bf..c1b23b3 100644 --- a/src/products/products.module.ts +++ b/src/products/products.module.ts @@ -528,7 +528,7 @@ where 1=1 --and pemp.nroempresa = 202 and md.nrodivisao in (2,4) and (${args.codproduto} is null or pemp.seqproduto = ${args.codproduto}) -and (${args.ctx_user_companies} is null or me.nroempresa in ${args.ctx_user_companies}) +and (me.nroempresa in (${args.ctx_user_companies})) and pes2.qtdembalagem = (select nvl(max(pes3.qtdembalagem), 1) from mrl_prodempseg pes3