Sha256: 97e8078400e991258b91f5cd1d293a58c26fa900c4a1017fd10678e99c7e7292

Contents?: true

Size: 614 Bytes

Versions: 7

Compression:

Stored size: 614 Bytes

Contents

<div class="container">
  <center>
    <h1>General Ledger</h1>
    <br>
  </center>

<table class="table table-striped table-hover">
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th>Credit Balance</th>
    <th>Debit Balance</th>
    <th>Balance</td>
  </tr>

<% @accounts.each do |account| %>
  <tr class="<%= cycle("even", "odd") -%>">
    <td><%=h account.name %></td>
    <td><%=h account.type.sub('Borutus::','') %></td>
    <td><%=h account.credits_balance.round(2) %></td>
    <td><%=h account.debits_balance.round(2) %></td>
    <td><%=h account.balance.round(2) %></td>
  </tr>
<% end %>
</table>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
borutus-1.0.0 app/views/borutus/accounts/index.html.erb
borutus-0.2.4 app/views/borutus/accounts/index.html.erb
borutus-0.2.3 app/views/borutus/accounts/index.html.erb
borutus-0.2.2 app/views/borutus/accounts/index.html.erb
borutus-0.2.1 app/views/borutus/accounts/index.html.erb
borutus-0.2.0 app/views/borutus/accounts/index.html.erb
borutus-0.1.0 app/views/borutus/accounts/index.html.erb