.widget header> h5 ' Lista de span.fw-semi-bold Itens da #{@ordem_de_compra.tipo_de_ordem} .widget-body - if itens_da_ordem_de_compra.empty? h6 Nenhum registro encontrado. - else - if itens_da_ordem_de_compra.any? && @ordem_de_compra.possui_itens_recebidos? .table-responsive table.table.table-hover thead tr th width="7%" Código th width="667px" Descrição th.text-center width="10%" Marca th.text-center width="10%" Quantidade th.text-center width="14%" Valor unitário th.text-center width="12%" Valor Total tbody - itens_da_ordem_de_compra.each do |item_da_ordem_de_compra| - if item_da_ordem_de_compra.quantidade_recebida.to_f > 0 tr td = "##{item_da_ordem_de_compra.item.id}" td = item_da_ordem_de_compra.item.descricao_do_item td.text-center = item_da_ordem_de_compra.try(:marca) td.text-center = item_da_ordem_de_compra.quantidade_recebida.to_f.valor_contabil td.text-center = item_da_ordem_de_compra.valor_unitario.to_f.valor_financeiro td.text-center = item_da_ordem_de_compra.valor_total_quantidade_recebida.to_f.real_contabil - else h6 Todos os itens estão a receber.