- if lote.itens_do_lote_do_pedido.count > 0 table.table.table-hover.table-bordered.table-responsive.font-small thead tr th colspan="6" valign="center" b LOTE N° #{lote.numero} .pull-right tr th width="7%" SEQUÊNCIA th ITEM th width="10%" QUANTIDADE th width="10%" VALOR TOTAL tbody - total = 0 - lote.itens_do_lote_do_pedido.order(:ordem).each do |item_do_lote| tr td.align-center = item_do_lote.try(:ordem) td = item_do_lote.item_do_pedido.item.try(:codigo_e_descricao_do_item) td.align-center = "#{item_do_lote.item_do_pedido.quantidade_total_requisitada.try(:valor, precision: 2) }" td.align-right = item_do_lote.item_do_pedido.valor_total_previsto_por_desconto.to_f.valor_financeiro - total += item_do_lote.item_do_pedido.valor_total_previsto_por_desconto tr td colspan="4" align="right" b TOTAL: b =< total.to_f.real_contabil