Permalink
Browse files

balance forward formatting

  • Loading branch information...
SelenaSmall committed Sep 20, 2015
1 parent c1f9c3e commit e572c65a9fdb27c6fea89ae3bc3864f7165228fc
Showing with 10 additions and 6 deletions.
  1. +1 −1 app/assets/stylesheets/mybudget.scss
  2. +9 −5 app/views/mybudgets/show.html.erb
@@ -21,7 +21,7 @@
font-size: 40px
}

#total-field-name {
.total-field-name {
font-size: 25px;
color: #1F3D99;
}
@@ -4,19 +4,23 @@
<div class="summary-row">
<table>
<tr>
<td id="total-field-name">OPENING BALANCE</td>
<td class="total-field-name">OPENING BALANCE</td>
<td class="total-field">$<%= @mybudget.open_bal %></td>
</tr>
</table>
</div>
</center>
<center>
<div>
<%= render 'mybudgets/incomes' %>
<%= render 'mybudgets/expenses' %>
<%= render 'mybudgets/transfers' %>
</div>
<div class="total-output">BALANCE FORWARD<%= Mybudget.sum(:open_bal)+Income.sum(:amount)-Expense.sum(:amount)-Transfer.sum(:amount) %>
</div>
<div class="summary-row">
<table>
<tr>
<td class="total-field-name">BALANCE FORWARD</td>
<td class="total-field">$<%= Mybudget.sum(:open_bal)+Income.sum(:amount)-Expense.sum(:amount)-Transfer.sum(:amount) %></td>
</tr>
</table>
</div>
</center>
</div>

0 comments on commit e572c65

Please sign in to comment.