<%=h @account.name %> Account

ID Name Type Credit Balance Debit Balance Balance
<%=h @account.id %> <%=h @account.name %> <%=h @account.type.sub('Plutus::','') %> <%=h @account.credits_balance %> <%=h @account.debits_balance %> <%=h @account.balance %>

Credit Transactions

<% @account.credit_transactions.each do |transaction| %> "> <% end %>
ID Description Date
<%=h transaction.id %> <%=h transaction.description %> <%=h transaction.created_at %>

Debit Transactions

<% @account.debit_transactions.each do |tr| %> "> <% end %>
ID Description Date
<%=h tr.id %> <%=h tr.description %> <%=h tr.created_at %>