.widget header> h5 ' Lista de span.fw-semi-bold Saídas no Estoque .widget-body - if @saidas.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 Saída - if action_name == "show" th.text-center Origem th.text-center Valor Unit. th.text-center Qtde th.text-center Total tbody - @saidas.each do |saida| tr td.text-center = saida.try(:data_da_movimentacao) - if saida.origem_type == "GestaoDeEstoque::Consumo" td.text-center = link_to "Consumo #{saida.origem.try(:numero_da_requisicao)}", gestao_de_estoque_consumo_path(saida.origem_id) - elsif saida.origem_type == "GestaoDeEstoque::DevolucaoDeMaterial" td.text-center = link_to "Devolução #{saida.origem.try(:numero_da_devolucao)}", gestao_de_estoque_devolucao_de_material_path(saida.origem_id) - elsif saida.origem_type == "GestaoDeEstoque::Transferencia" td.text-center = link_to "Transferência #{saida.origem.try(:numero_da_requisicao)}", gestao_de_estoque_transferencia_path(saida.origem_id) - elsif saida.origem_type == "Patrimonio::RecebimentoDeBem" td.text-center = "Registro do Bem #{saida.origem.try(:codigo)}" - else td.text-center = link_to "Requisição #{saida.origem.try(:numero_da_requisicao)}", administrativo_requisicao_de_material_path(saida.origem.id) - if action_name == "show" td.text-center = saida.retorna_ug_e_almoxarifado td.text-center.text-success style="font-weight: 600" = saida.valor_unitario.to_f.valor_financeiro(maximum_precision: 4) if saida.try(:valor_unitario).present? - if configuracao.usa_modulo_administrativo? td.text-center.text-primary style="font-weight: 600" = saida.quantidade_saida.to_f.valor_contabil(minimum_precision: 4, maximum_precision: 4) if saida.try(:quantidade_saida).present? td.text-center.text-primary style="font-weight: 600" = saida.total_saida.to_f.valor_financeiro(maximum_precision: 4) if saida.try(:total_saida).present? - else td.text-center.text-primary style="font-weight: 600" = saida.quantidade_saida_avulsa.to_f.valor_contabil(minimum_precision: 4, maximum_precision: 4) if saida.try(:quantidade_saida_avulsa).present? td.text-center.text-primary style="font-weight: 600" = saida.total_saida_avulsa.to_f.valor_financeiro(maximum_precision: 4) if saida.try(:total_saida_avulsa).present? = will_paginate@saidas, previous_label: "<", next_label: ">"