.widget header h4.show-header ' Movimentações da Conta .widget-controls h4 strong = "Saldo Inicial: #{@conta.saldo_inicial.to_f.real_contabil}" .widget-body - if movimentacoes.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover.table-bordered.table-responsive.font-small thead tr th Conta Corrente th width="130" Débito th width="130" Crédito th width="130" Saldo Final tbody - saldo_inicial = @conta.saldo_inicial - movimentacoes.each do |movimentacao| tr td = movimentacao.detalhamento_da_conta.to_s td align="right" = movimentacao.valor.real_contabil if movimentacao.debito? td align="right" = movimentacao.valor.real_contabil if movimentacao.credito? td align="right" = movimentacao.valor.to_f.abs.real_contabil tfoot tr td colspan="3" align="right" strong Saldo Total td align="right" strong = @conta.saldo_total.to_f.abs.real_contabil