.widget header> h5 ' Lista de span.fw-semi-bold Entradas no Estoque .widget-body - if @entradas.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover.table-striped.table-bordered thead tr th.text-center width="150" Data th.text-center Forma de Entrada - if action_name == "show" th.text-center Destino th.text-center Valor Unit. th.text-center Qtde th.text-center Total tbody - @entradas.each do |entrada| - if entrada.almoxarifado.tipo_de_almoxarifado != "patrimonio" tr td.text-center = entrada.try(:data_da_movimentacao) - if entrada.origem_type == "GestaoDeEstoque::DevolucaoDeMaterial" td.text-center = link_to "Devolução #{entrada.origem.try(:numero_da_devolucao)}", gestao_de_estoque_devolucao_de_material_path(entrada.origem_id) - elsif entrada.origem_type == "GestaoDeEstoque::Transferencia" td.text-center = link_to "Transferência #{entrada.origem.try(:codigo)}", gestao_de_estoque_transferencia_path(entrada.origem_id) - elsif entrada.origem_type == "GestaoDeEstoque::RecebimentoDeMaterial" td.text-center = link_to "Recebimento De Material #{entrada.origem.try(:codigo)}", gestao_de_estoque_recebimento_de_material_path(entrada.origem_id) - elsif entrada.origem_type == "Patrimonio::RecebimentoDeBem" td.text-center = link_to "Recebimento De Bem #{entrada.origem.try(:codigo)}", patrimonio_recebimento_de_bem_path(entrada.origem_id) - else td.text-center = link_to "Requisição #{entrada.origem.try(:numero_da_requisicao)}", administrativo_requisicao_de_material_path(entrada.origem.id) - if action_name == "show" td.text-center = entrada.retorna_ug_e_almoxarifado td.text-center.text-success style="font-weight: 600" = entrada.valor_unitario.to_f.valor_financeiro(maximum_precision: 4) if entrada.try(:valor_unitario).present? td.text-center.text-success style="font-weight: 600" = entrada.quantidade_entrada.to_f.valor_contabil(minimum_precision: 4, maximum_precision: 4) if entrada.try(:quantidade_entrada).present? td.text-center.text-success style="font-weight: 600" = entrada.total_entrada.to_f.valor_financeiro(maximum_precision: 4) if entrada.try(:total_entrada).present? = will_paginate@entradas, previous_label: "<", next_label: ">"