Sha256: fa8d0dcb27107f105e582568533a6b3b0785d614f3aeb3f89a21b28ff9e832ba

Contents?: true

Size: 748 Bytes

Versions: 18

Compression:

Stored size: 748 Bytes

Contents

<table class="table table-striped table-hover">
  <caption class="text-left"><b><%=name%></b></caption>
  <thead>
  <tr>
    <th></th>
    <th></th>
  </tr>
  </thead>
<% if accounts.count > 0%>
  <tbody>
    <% running_total = 0 %>
    <% accounts.each do |account| %>
      <% balance = account.balance(:from_date => @from_date, :to_date => @to_date) %>
      <tr class="<%= cycle("even", "odd") -%>">
        <td><%=h account.name %></td>
        <td><%=h balance.round(2) %></td>
        <% running_total += balance %>
      </tr>
    <% end %>
    <tr class="<%= cycle("even", "odd") -%>">
      <strong>
        <td>Total <%= name %></td>
        <td><%= running_total.round(2) %></td>
      </strong>
    </tr>
  </tbody>
<% end %>
</table>

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
borutus-1.0.0 app/views/borutus/reports/_account.html.erb
plutus-0.17 app/views/plutus/reports/_account.html.erb
plutus-0.16 app/views/plutus/reports/_account.html.erb
plutus-0.15 app/views/plutus/reports/_account.html.erb
plutus-0.14 app/views/plutus/reports/_account.html.erb
borutus-0.2.4 app/views/borutus/reports/_account.html.erb
borutus-0.2.3 app/views/borutus/reports/_account.html.erb
borutus-0.2.2 app/views/borutus/reports/_account.html.erb
tyche-0.14 app/views/plutus/reports/_account.html.erb
credere-0.10.3 app/views/credere/reports/_account.html.erb
credere-0.10.2 app/views/credere/reports/_account.html.erb
credere-0.10.1 app/views/credere/reports/_account.html.erb
borutus-0.2.1 app/views/borutus/reports/_account.html.erb
borutus-0.2.0 app/views/borutus/reports/_account.html.erb
odania_plutus-0.13 app/views/plutus/reports/_account.html.erb
borutus-0.1.0 app/views/borutus/reports/_account.html.erb
plutus-0.13 app/views/plutus/reports/_account.html.erb
plutus-0.12.2 app/views/plutus/reports/_account.html.erb