Skip to content

Commit

Permalink
Ensure transaction journal balances are rounded to two decimal places.
Browse files Browse the repository at this point in the history
  • Loading branch information
freerobby committed Sep 5, 2015
1 parent 13f0386 commit 130683f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/plutus/entries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<% entry.debit_amounts.each do |debit_amount| %>
<tr class="<%= cycle("odd", "odd") -%>">
<td>&nbsp;&nbsp;&nbsp;&nbsp;<%=h "#{debit_amount.account.name}" %></td>
<td><%=h debit_amount.amount %></td>
<td><%=h debit_amount.amount.round(2) %></td>
<td></td>
<td></td>
</tr>
Expand All @@ -33,7 +33,7 @@
<tr class="<%= cycle("odd", "odd") -%>">
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=h "#{credit_amount.account.name}" %></td>
<td></td>
<td><%=h credit_amount.amount %></td>
<td><%=h credit_amount.amount.round(2) %></td>
<td></td>
</tr>
<% end %>
Expand Down

0 comments on commit 130683f

Please sign in to comment.