.widget header> h5 ' Lista de span.fw-semi-bold - if logado_no_administrativo? span.active ' Itens da Req. de Materiais - else span.active ' Itens do Consumo .widget-body - if @consumo.itens_do_consumo.empty? h6 Nenhum registro encontrado. - else - itens_do_consumo.group_by{|i| i.estoque.sub_elemento_de_despesa.codigo_formatado_e_descricao}.sort_by{|i| i[0]}.each do | sub, itens_por_sub| p = sub .table-responsive table.table.table-hover.table-bordered thead tr th Item th.text-center style="width: 10%" Unid. de medida th.text-center style="width: 10%" Quantidade Disponível th.text-center style="width: 10%" Quantidade Solicitada th.text-center style="width: 10%" Status Intermodulos th tbody - itens_por_sub.each do | item_do_consumo | tr td = item_do_consumo.try(:item).try(:codigo_e_descricao) td.text-center = item_do_consumo.try(:item).try(:unidade_de_medida).try(:descricao) td.text-center = item_do_consumo.saldo_atual_do_item.to_f.valor_contabil(minimum_precision: 4) td.text-center = item_do_consumo.try(:quantidade_consumida).to_f.valor_contabil(minimum_precision: 4) td.text-center = item_do_consumo.try(:status_de_reconhecimento_i18n).try(:upcase) td = link_to intermodulos_reconhecer_ou_desreconhecer_movimentacoes_do_estoque_path(movimentacao_ids: item_do_consumo.id, status_selecionado: item_do_consumo.status_de_reconhecimento), method: :post, data: { confirm: 'Tem certeza?' }, class: "btn btn-default btn-sm" do - unless item_do_consumo.reconhecido? i.icone-avancar ' Reconhecer - else i.icone-voltar ' Desreconhecer