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
+3 -3
View File
@@ -9,15 +9,15 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@davinti/jeff": "git+https://git.davinti.com.br/davinTI/jeff.git#v1.0.5" "@davinti/jeff": "git+https://git.davinti.com.br/davinTI/jeff.git#v1.0.6"
}, },
"devDependencies": { "devDependencies": {
"tsx": "^4.21.0" "tsx": "^4.21.0"
} }
}, },
"node_modules/@davinti/jeff": { "node_modules/@davinti/jeff": {
"version": "1.0.5", "version": "1.0.6",
"resolved": "git+https://git.davinti.com.br/davinTI/jeff.git#de72040736f1459809722c87d602185ae470fb76", "resolved": "git+https://git.davinti.com.br/davinTI/jeff.git#c61edd0051b14b11f02fcb569b48f043c43180cf",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@types/glob": "^8.1.0", "@types/glob": "^8.1.0",
+1 -1
View File
@@ -12,7 +12,7 @@
"license": "ISC", "license": "ISC",
"description": "", "description": "",
"dependencies": { "dependencies": {
"@davinti/jeff": "git+https://git.davinti.com.br/davinTI/jeff.git#v1.0.5" "@davinti/jeff": "git+https://git.davinti.com.br/davinTI/jeff.git#v1.0.6"
}, },
"devDependencies": { "devDependencies": {
"tsx": "^4.21.0" "tsx": "^4.21.0"
+70 -1
View File
@@ -74,6 +74,7 @@ export default moduleFactory
label: "Quantidade Embalagem", label: "Quantidade Embalagem",
column: "quantidadeembalagem", column: "quantidadeembalagem",
format: "number", format: "number",
entrypoint: "detalhe_preco_embalagem"
}, },
{ {
label: "Estoque Disponível", label: "Estoque Disponível",
@@ -228,9 +229,50 @@ export default moduleFactory
], ],
}, },
], ],
}, },
params: ["codproduto"], 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", entrypoint: "consulta",
}) })
@@ -667,6 +709,33 @@ and pes2.qtdembalagem = (select nvl(max(pes3.qtdembalagem), 1)
and pes3.seqproduto = pes.seqproduto and pes3.seqproduto = pes.seqproduto
and pes3.nrosegmento = pes.nrosegmento and pes3.nrosegmento = pes.nrosegmento
and pes3.statusvenda = 'A') 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'
` `
} }
} }