Adição de mais um preço 'Termo especial'

This commit is contained in:
2026-07-15 16:27:20 -03:00
parent e129e991e4
commit 5af51534be
13 changed files with 158 additions and 62 deletions

View File

@@ -15,7 +15,8 @@ class ConsolidacaoEntrega < ApplicationRecord
bonus: 2,
desconto: 3,
extraordinaria: 4,
termo: 5
termo: 5,
termo_especial: 6
}
TIPO_CORES = {
@@ -24,7 +25,8 @@ class ConsolidacaoEntrega < ApplicationRecord
'bonus' => { bg: 'bg-white border border-orange-500', text: 'text-black', label: 'Bônus' },
'desconto' => { bg: 'bg-gray-900', text: 'text-white', label: 'Desconto' },
'extraordinaria' => { bg: 'bg-purple-600', text: 'text-white', label: 'Entrega Extraordinária' },
'termo' => { bg: 'bg-blue-600', text: 'text-white', label: 'Entrega de Termo' }
'termo' => { bg: 'bg-blue-600', text: 'text-white', label: 'Entrega de Termo' },
'termo_especial' => { bg: 'bg-cyan-600', text: 'text-white', label: 'Entrega de Termo Especial' }
}.freeze
# Uma entrega pode ter vários pilares (Normal + Bônus + Retirada…),
@@ -54,6 +56,7 @@ class ConsolidacaoEntrega < ApplicationRecord
when 'desconto' then Configuracao.preco_desconto
when 'extraordinaria' then Configuracao.preco_extraordinaria
when 'termo' then Configuracao.preco_termo
when 'termo_especial' then Configuracao.preco_termo_especial
else 0
end
end