ol.breadcrumb li.active = link_to "Alertas", alertas_index_path, class: "link_breadcrumb" == render "filtros" .widget header> h5 ' Lista de span.fw-semi-bold Alertas Gestão de Estoque hr .widget-body h4 strong ' Ordens de Fornecimento a Receber p - if @ordens_de_compra_trinta_dias.empty? && @ordens_de_compra_vinte_dias.empty? && @ordens_de_compra_quinze_dias.empty? && @ordens_de_compra_cinco_dias.empty? && @ordens_de_compra_hoje.empty? p.bold = "Nehuma Ordem de Compra a Receber" br - else - unless @ordens_de_compra_atrasadas.empty? p.bold = "Há #{@ordens_de_compra_atrasadas.count} Ordens de Fornecimento para Receber Atrasadas" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data th style=("width: 20%") Fornecedor th style=("width: 20%") UG th style=("width: 20%") Valor th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_atrasadas.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td = ordem_de_compra.try(:empenho).try(:pessoa).try(:nome) td = ordem_de_compra.try(:unidade_orcamentaria).try(:sigla) td = ordem_de_compra.try(:valor_total).try(:real_contabil) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @ordens_de_compra_hoje.empty? p.bold = "Há #{@ordens_de_compra_hoje.count} Ordens de Fornecimento para Receber Hoje #{@data_formatada}" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data th style=("width: 20%") Fornecedor th style=("width: 20%") UG th style=("width: 20%") Valor th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_hoje.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td = ordem_de_compra.try(:empenho).try(:pessoa).try(:nome) td = ordem_de_compra.try(:unidade_orcamentaria).try(:sigla) td = ordem_de_compra.try(:valor_total).try(:real_contabil) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @ordens_de_compra_cinco_dias.empty? p.bold = "Há #{@ordens_de_compra_cinco_dias.count} Ordens de Fornecimento para Receber em 5 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data th style=("width: 20%") Fornecedor th style=("width: 20%") UG th style=("width: 20%") Valor th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_cinco_dias.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td = ordem_de_compra.try(:empenho).try(:pessoa).try(:nome) td = ordem_de_compra.try(:unidade_orcamentaria).try(:sigla) td = ordem_de_compra.try(:valor_total).try(:real_contabil) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @ordens_de_compra_quinze_dias.empty? p.bold = "Há #{@ordens_de_compra_quinze_dias.count} Ordens de Fornecimento para Receber em 15 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data th style=("width: 20%") Fornecedor th style=("width: 20%") UG th style=("width: 20%") Valor th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_quinze_dias.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td = ordem_de_compra.try(:empenho).try(:pessoa).try(:nome) td = ordem_de_compra.try(:unidade_orcamentaria).try(:sigla) td = ordem_de_compra.try(:valor_total).try(:real_contabil) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @ordens_de_compra_vinte_dias.empty? p.bold = "Há #{@ordens_de_compra_vinte_dias.count} Ordens de Fornecimento para Receber em 20 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data th style=("width: 20%") Fornecedor th style=("width: 20%") UG th style=("width: 20%") Valor th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_vinte_dias.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td = ordem_de_compra.try(:empenho).try(:pessoa).try(:nome) td = ordem_de_compra.try(:unidade_orcamentaria).try(:sigla) td = ordem_de_compra.try(:valor_total).try(:real_contabil) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @ordens_de_compra_trinta_dias.empty? p.bold = "Há #{@ordens_de_compra_trinta_dias.count} Ordens de Fornecimento Para Receber em 30 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data th style=("width: 20%") Fornecedor th style=("width: 20%") UG th style=("width: 20%") Valor th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_trinta_dias.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td = ordem_de_compra.try(:empenho).try(:pessoa).try(:nome) td = ordem_de_compra.try(:unidade_orcamentaria).try(:sigla) td = ordem_de_compra.try(:valor_total).try(:real_contabil) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Requisições a Atender p - if @requisicao_hoje.empty? && @requisicoes_cinco_dias.empty? && @requisicoes_quinze_dias.empty? && @requisicoes_vinte_dias.empty? && @requisicoes_trinta_dias.empty? p = "Nenhuma Requisição de Material a Atender" br - else - unless @requisicao_hoje.empty? p.bold = "Há #{@requisicao_hoje.count} Requisições a Atender Hoje #{@data_formatada}" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data th style=("width: 20%") th style=("width: 20%") UG th style=("width: 20%") th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Reque. tbody - @requisicao_hoje.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td td = requisicao.try(:unidade_orcamentaria).try(:sigla) td td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @requisicoes_cinco_dias.empty? p.bold = "Há #{@requisicoes_cinco_dias.count} Requisições a Atender em 5 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data th style=("width: 20%") th style=("width: 20%") UG th style=("width: 20%") th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Reque. tbody - @requisicoes_cinco_dias.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td td = requisicao.try(:unidade_orcamentaria).try(:sigla) td td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @requisicoes_quinze_dias.empty? p.bold = "Há #{@requisicoes_quinze_dias.count} Requisições a Atender em 15 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data th style=("width: 20%") th style=("width: 20%") UG th style=("width: 20%") th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Reque. tbody - @requisicoes_quinze_dias.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td td = requisicao.try(:unidade_orcamentaria).try(:sigla) td td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @requisicoes_vinte_dias.empty? p.bold = "Há #{@requisicoes_vinte_dias.count} Requisições a Atender em 20 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data th style=("width: 20%") th style=("width: 20%") UG th style=("width: 20%") th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Reque. tbody - @requisicoes_vinte_dias.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td td = requisicao.try(:unidade_orcamentaria).try(:sigla) td td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - unless @requisicoes_trinta_dias.empty? p.bold = "Há #{@requisicoes_trinta_dias.count} Requisições a Atender em 30 Dias" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data th style=("width: 20%") th style=("width: 20%") UG th style=("width: 20%") th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Reque. tbody - @requisicoes_trinta_dias.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td td = requisicao.try(:unidade_orcamentaria).try(:sigla) td td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Estoques Parados p - if @estoque_parado.empty? p = "Nenhuma Estoque Parado" br - else p = "Há #{@estoque_parado.count} estoques sem movimentação no(s) último(s) #{@prazo_sem_movimentacao} dia(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Descrição th.center style=("width: 20%") Data de Entrada th.center style=("width: 20%") Última Movimentação tbody - @estoque_parado.each do |estoque| tr td = estoque.try(:descricao_item) td.center = estoque.try(:primeira_movimentacao).try(:data_da_movimentacao) td.center = estoque.try(:ultima_movimentacao).try(:data_da_movimentacao) td.text-center style=("width: 10%") = link_to gestao_de_estoque_path(estoque) , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar