Skip to content

Commit

Permalink
generate balance sheet for supplied date
Browse files Browse the repository at this point in the history
  • Loading branch information
mbulat committed Jul 28, 2015
1 parent b17b746 commit f8fff97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/plutus/reports/_account.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<% accounts.each do |account| %>
<tr class="<%= cycle("even", "odd") -%>">
<td><%=h account.name %></td>
<td><%=h account.balance %></td>
<td><%=h account.balance(:from_date => "2000-01-01", :to_date => @date) %></td>
</tr>
<% end %>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion app/views/plutus/reports/balance_sheet.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= label_tag :date, nil, class: 'sr-only'%>
<%= text_field_tag :date, @date, :class => 'datepicker form-control', :placeholder => "Date" %>
</div>
<button type="submit" class="btn btn-default">Set Date</button>
<button type="submit" class="btn btn-default">Get Report</button>
<% end %>
</center>

Expand Down

0 comments on commit f8fff97

Please sign in to comment.