diff --git a/src/products/products.module.ts b/src/products/products.module.ts index 8fafdf2..41b5a70 100644 --- a/src/products/products.module.ts +++ b/src/products/products.module.ts @@ -1097,7 +1097,7 @@ left join (select pvencto.nroempresa, and vncto.seqproduto = pemp.seqproduto where md.nrodivisao in (1) and pemp.seqproduto = ${args.codproduto} -and me.nroempresa in ${args.ctx_user_companies_for_module} +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