.widget header> h5 ' Lista de span.fw-semi-bold Itens do Contrato .widget-body - if itens.empty? h6 Nenhum registro encontrado. - else - @contrato.itens_do_contrato.includes(item_do_lote: :lote).order('licitacao_lotes.numero').group_by {|item_do_contrato| item_do_contrato.item_do_lote.lote}.each do |lote, itens_do_contrato| h6 strong LOTE N°: =< lote.numero h6 strong FORNECEDOR: =< lote.pessoa_do_projeto_do_lote_ganhadora.try(:pessoa_do_projeto).try(:pessoa).try(:nome) .table-responsive table.table.table-hover thead tr th Descrição th width="15%" Valor Unitário th width="5%" Quantidade th width="15%" Valor Total tbody - itens.each do |item_do_contrato| tr td = item_do_contrato.item_do_lote.item_do_pedido.try(:item).try(:descricao_codigo_na_prefeitura_e_unidade) td = item_do_contrato.valor_unitario.to_f.valor_financeiro td = item_do_contrato.quantidade.to_f.valor_contabil td = (item_do_contrato.valor_unitario * item_do_contrato.quantidade).to_f.valor_financeiro