bump version
davinTI/app-dono-modulos/pipeline/head This commit looks good

This commit is contained in:
2026-03-06 14:01:58 -03:00
parent 74bf1abad8
commit 9318e734a5
3 changed files with 74 additions and 5 deletions
+70 -1
View File
@@ -74,6 +74,7 @@ export default moduleFactory
label: "Quantidade Embalagem",
column: "quantidadeembalagem",
format: "number",
entrypoint: "detalhe_preco_embalagem"
},
{
label: "Estoque Disponível",
@@ -228,9 +229,50 @@ export default moduleFactory
],
},
],
},
},
params: ["codproduto"],
},
detalhe_preco_embalagem: {
name: "Detalhe Preço Embalagem",
display: {
type: "table",
table: {
header: [
{
label: "Embalagem",
},
{
label: "Preço Embalagem",
},
{
label: "Preço Unidade",
},
{
label: "Margem",
},
],
cell: [
{
field: "EMBALAGEM",
format: "string",
},
{
field: "PRECO_EMBALAGEM",
format: "currency",
},
{
field: "PRECO_UNIDADE",
format: "currency",
},
{
field: "MARGEM",
format: "percentage",
},
],
},
},
params: ["nrempresa", "codproduto"],
},
},
entrypoint: "consulta",
})
@@ -667,6 +709,33 @@ and pes2.qtdembalagem = (select nvl(max(pes3.qtdembalagem), 1)
and pes3.seqproduto = pes.seqproduto
and pes3.nrosegmento = pes.nrosegmento
and pes3.statusvenda = 'A')
`,
};
},
detalhe_preco_embalagem: (args) => {
return {
sql: /*sql*/ `
select ora_hash(mgmp.SEQPRODUTO||mgmp.NROEMPRESA||mgmp.QTDEMBALAGEM||mgmp.NROSEGMENTO) chave,
mgmp.SEQPRODUTO,
mgmp.NROEMPRESA,
mgmp.NROSEGMENTO,
mgmp.QTDEMBALAGEM || ' ' || mgmp.EMBVENDA embalagem,
mgmp.PRECOVALIDNORMAL preco_embalagem,
mgmp.PRECOVALIDNORMAL / mgmp.QTDEMBALAGEM preco_unidade,
trunc(mgmp.MGMPRECOVALIDO,2) margem
from maxv_mgmbaseprodseg mgmp
inner join max_empresa me
on me.nroempresa = mgmp.NROEMPRESA
and me.status = 'A'
and me.dtainiciomovestoque <= trunc(sysdate)-1
and me.nrodivisao in (2,4)
and me.nroempresa not in (291,298,910,911,920,930,931,940,980)
AND mgmp.NROSEGMENTO IN (2,7)
where 1=1
and mgmp.seqproduto = ${args.codproduto}
and mgmp.nroempresa = ${args.nrempresa}
AND mgmp.NROSEGMENTO NOT IN (22,23,26)
and mgmp.STATUSVENDA = 'A'
`
}
}