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