- if @devolucao_de_material.aberto? div style="margin: 20px !important" - if esta_autorizado?(:edit) && @devolucao_de_material.devolucao_parcial? = link_to gestao_de_estoque_editar_itens_das_devolucoes_de_materiais_path(@devolucao_de_material), class: "btn btn-default btn-sm" do i.icone-cadastrar ' Adicionar/Remover Itens .widget header> h5 ' Lista de span.fw-semi-bold Itens Devolvidos .widget-body - if itens_das_devolucoes_de_materiais.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover.table-striped.table-bordered thead tr th.text-center width="60%" Item th.text-center width="20%" Unidade de Medida th.text-center Quantidade tbody - itens_das_devolucoes_de_materiais.each do |item_da_devolucao_de_material| tr td = item_da_devolucao_de_material.item.try(:codigo_e_descricao) td.text-center = item_da_devolucao_de_material.unidade_de_medida.try(:descricao) td.text-center = item_da_devolucao_de_material.quantidade_devolvida.to_f.valor_contabil(minimum_precision: 4)