div style="margin: 20px !important" - if esta_autorizado?(:edit) && logado_na_gestao_de_estoque? && (@recebimento_de_material.itens_do_recebimento_de_materiais.empty? || @recebimento_de_material.aberto?) - if @recebimento_de_material.ordem_de_compra.present? && @recebimento_de_material.ordem_de_compra.possui_itens_a_receber? = link_to gestao_de_estoque_editar_itens_do_recebimento_de_materiais_path(@recebimento_de_material), class: "btn btn-default btn-sm" do i.icone-cadastrar ' Adicionar/Remover Itens - if @recebimento_de_material.ordem_de_compra.present? = link_to gestao_de_estoque_editar_itens_para_nota_mista_path(@recebimento_de_material), class: "btn btn-default btn-sm", style: "margin-left: 10px;", title: "Ver Detalhes" do i.fa.fa-exchange ' Alterar Itens .widget header h5 ' Lista de span.fw-semi-bold Itens Recebidos .widget-body - if itens_do_recebimento_de_materiais.empty? h6 Nenhum registro encontrado. - else - itens = itens_do_recebimento_de_materiais.map{ |i| i.unidade_de_medida_de_conversao } .table-responsive table.table.table-hover.table-striped.table-bordered thead tr - if itens.any? th.text-center colspan="3" th.text-center width="10%" colspan="2" Conversão - else th.text-center colspan="3" - unless @tipo.present? && @tipo == "outros" th.text-center width="10%" colspan="2" Ordem de Fornecimento th.text-center width="10%" colspan="2" Entrada tr th width="45%" Item th.text-center width="10%" Marca th.text-center width="10%" Vl. Unitário - if itens.any? th.text-center width="08%" UNID. DE MEDIDA th.text-center width="08%" Vl. Unitário - unless @tipo.present? && @tipo == "outros" th.text-center Qtde th.text-center width="10%" Vl. Total th.text-center Qtde th.text-center width="10%" Vl. Total tbody - itens_do_recebimento_de_materiais.each do |item_do_recebimento_de_material| tr td = item_do_recebimento_de_material.descricao_codigo_na_prefeitura_e_unidade_destacada td.text-center = item_do_recebimento_de_material.try(:marca) td.text-center = item_do_recebimento_de_material.valor_unitario.to_f.real_contabil - if itens.any? td.text-center = item_do_recebimento_de_material.try(:unidade_de_medida_de_conversao).try(:descricao) td.text-center = item_do_recebimento_de_material.try(:valor_unitario_de_conversao).to_f.real_contabil if item_do_recebimento_de_material.try(:valor_unitario_de_conversao) != nil - unless @tipo.present? && @tipo == "outros" td.text-center = item_do_recebimento_de_material.try(:quantidade_total_do_item_na_ordem_de_compra).to_f.valor_contabil(minimum_precision: 4) td.text-center = item_do_recebimento_de_material.valor_total_disponivel_da_ordem_de_compra.to_f.real_contabil td.text-center = item_do_recebimento_de_material.quantidade.to_f.valor_contabil(minimum_precision: 4) td.text-center = item_do_recebimento_de_material.total.to_f.real_contabil