X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=inline;f=app%2Fviews%2Fpurchase%2Flist.rhtml;h=4b2306d0a4f9bf7219caa980f15123279c95fb53;hb=refs%2Ftags%2Fturned-in;hp=b702f7f69daa3db14ab2bd021eea1a828b8d791e;hpb=e4597521e3a7365f86731f7d69643cb1067acb5e;p=cs356-p2-videostore.git diff --git a/app/views/purchase/list.rhtml b/app/views/purchase/list.rhtml index b702f7f..4b2306d 100644 --- a/app/views/purchase/list.rhtml +++ b/app/views/purchase/list.rhtml @@ -3,7 +3,6 @@
Date | -Quantity | Type | Title | Price | @@ -13,10 +12,9 @@ <% for purchase in @purchases %>|||
---|---|---|---|---|---|---|---|
<%=link_to purchase.date, :action => 'filterbydate', :id => purchase.date %> | -<%=h purchase.quantity %> | -<%=link_to purchase.class, :action => 'filterbytype', :id => purchase.type %> | +<%=link_to purchase.class, :action => 'filterbytype', :id => purchase.class %> | <%=h purchase.title %> | -<%=h purchase.price %> | +<%=h number_to_currency(purchase.price) %> | <%=link_to purchase.customer.name, :action => 'filterbycust', :id => purchase.customer_id %> |