X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fpurchase%2Fmenu.rhtml;h=9fb2fa13229e569ec65b56b94e873567a11e5fa3;hb=HEAD;hp=ce8a646ff15d10e7c0d015022eef28a8c73efc48;hpb=ebb2b4d40713d535c06970b2a17aace4458ecf25;p=cs356-p2-videostore.git
diff --git a/app/views/purchase/menu.rhtml b/app/views/purchase/menu.rhtml
index ce8a646..9fb2fa1 100644
--- a/app/views/purchase/menu.rhtml
+++ b/app/views/purchase/menu.rhtml
@@ -1,14 +1,32 @@
-
Purchase Menu
+Customer Transaction
+Customer Information
- Customer ID: <%= @customer.id %>
- Customer Name: <%= @customer.name %>
- - Total Price: <%= @total_price %>
+ - Customer Debt: <%= number_to_currency(@customer.debt) %>
+ - Price for this transaction: <%= number_to_currency(@total_price) %>
+ - Total Amount Owed: <%= number_to_currency(@customer.debt + @total_price) %>
+Items Purchased
+<% if @items.empty? %>
+ None
+<% else %>
- - <%=link_to 'Rent an Item', :action => 'rent_begin' %>
- - <%=link_to 'Buy Merchandise', :action => 'buy_begin' %>
+<% for item in @items %>
+ - <%= item.title %>
+<% end %>
+
+<% end %>
+
+Actions
+
+ - <%=link_to 'Rent an Item', :action => 'rent' %>
+ - <%=link_to 'Buy Merchandise', :action => 'buy_merch' %>
+
+
+
+ - <%=link_to 'Checkout', :action => 'receipt' %>
-<%=link_to 'End Purchase', :action => 'index' %>