projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small Cleanups + Merchandise Search
[cs356-p2-videostore.git]
/
app
/
views
/
purchase
/
list.rhtml
diff --git
a/app/views/purchase/list.rhtml
b/app/views/purchase/list.rhtml
index
b702f7f
..
4b2306d
100644
(file)
--- a/
app/views/purchase/list.rhtml
+++ b/
app/views/purchase/list.rhtml
@@
-3,7
+3,6
@@
<table border="1">
<tr>
<th>Date</th>
<table border="1">
<tr>
<th>Date</th>
- <th>Quantity</th>
<th>Type</th>
<th>Title</th>
<th>Price</th>
<th>Type</th>
<th>Title</th>
<th>Price</th>
@@
-13,10
+12,9
@@
<% for purchase in @purchases %>
<tr>
<td><%=link_to purchase.date, :action => 'filterbydate', :id => purchase.date %></td>
<% for purchase in @purchases %>
<tr>
<td><%=link_to purchase.date, :action => 'filterbydate', :id => purchase.date %></td>
- <td><%=h purchase.quantity %></td>
- <td><%=link_to purchase.class, :action => 'filterbytype', :id => purchase.type %></td>
+ <td><%=link_to purchase.class, :action => 'filterbytype', :id => purchase.class %></td>
<td><%=h purchase.title %></td>
<td><%=h purchase.title %></td>
- <td><%=h
purchase.price
%></td>
+ <td><%=h
number_to_currency(purchase.price)
%></td>
<td><%=link_to purchase.customer.name, :action => 'filterbycust', :id => purchase.customer_id %></td>
</tr>
<% end %>
<td><%=link_to purchase.customer.name, :action => 'filterbycust', :id => purchase.customer_id %></td>
</tr>
<% end %>