projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lots of stuff, I got too tired to keep perfect revision history
[cs356-p2-videostore.git]
/
app
/
views
/
purchase
/
receipt.rhtml
diff --git
a/app/views/purchase/receipt.rhtml
b/app/views/purchase/receipt.rhtml
index
d5054cf
..
87e1c15
100644
(file)
--- a/
app/views/purchase/receipt.rhtml
+++ b/
app/views/purchase/receipt.rhtml
@@
-16,7
+16,7
@@
</tr>
<!-- Debt -->
</tr>
<!-- Debt -->
- <% if
@debt
%>
+ <% if
not @debt.zero?
%>
<tr>
<td><b>Overdue Item Fees</b></td>
<td></td>
<tr>
<td><b>Overdue Item Fees</b></td>
<td></td>
@@
-34,6
+34,13
@@
<td><%=h number_to_currency(item.price) %></td>
<% end %>
</tr>
<td><%=h number_to_currency(item.price) %></td>
<% end %>
</tr>
+<% end %>
+<% if @bonus %>
+ <tr>
+ <td><b>Bonus: </b><%=h @bonus.title %></td>
+ <td></td>
+ <td>- <%= number_to_currency(@bonus.calculated_price) %></td>
+ </tr>
<% end %>
<tr>
<td><b>Total</b></td>
<% end %>
<tr>
<td><b>Total</b></td>