.clearfix - if @empenho.existe_liquidacoes? .pull-right.alert.alert-warning.alert-sm ' Itens não podem ser alterados pois existe liquidação lançada br - if @empenho.itens_do_empenho.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Item th Saldo a Empenhar th width='50' Quantidade - if @empenho.valor_anulado.present? th width='50' Qtd. anulada th width='100' Valor Unitário th width='100' Total - if @empenho.valor_anulado.present? th width='100' Total Anulado th width="50" tbody - @empenho.itens_do_empenho.each do |item_do_empenho| tr td = item_do_empenho.item.codigo_e_descricao_do_item td = item_do_empenho.quantidade_disponivel_para_empenho.to_f.formato_decimal td = item_do_empenho.quantidade.to_f.formato_decimal - if @empenho.valor_anulado.present? td = item_do_empenho.quantidade_anulada.to_f.formato_decimal td = item_do_empenho.valor_unitario.to_f.real_contabil td = item_do_empenho.total.to_f.real_contabil - if item_do_empenho.total.present? td = item_do_empenho.total.to_f.real_contabil td - if !item_do_empenho.empenho.existe_liquidacoes? && @empenho.solicitado? = botao_com_permissao item_do_empenho, {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: "Apagar", }, } tr td colspan="5" align="left" b Total td b = @empenho.valor_total_dos_itens.real_contabil td - if @empenho.valor_anulado.present? b = @empenho.valor_anulado.real_contabil