X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fpurchase%2Fmenu.rhtml;h=e2e01b5cd93eb15c8e5b2a0d9a4602d946e492d3;hb=b12881a928516bca02b2bd8ce1bbe9288840c76f;hp=6f5abd1c8a9b93d5bdddbd1922feae9c5f897a9d;hpb=bbf13350a73e14c5448f6fb0077126b7d92cdb48;p=cs356-p2-videostore.git
diff --git a/app/views/purchase/menu.rhtml b/app/views/purchase/menu.rhtml
index 6f5abd1..e2e01b5 100644
--- a/app/views/purchase/menu.rhtml
+++ b/app/views/purchase/menu.rhtml
@@ -4,7 +4,9 @@
- 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
@@ -18,9 +20,13 @@
<% end %>
+Actions
- - <%=link_to 'Rent an Item', :action => 'rent_begin' %>
- - <%=link_to 'Buy Merchandise', :action => 'buy_begin' %>
+ - <%=link_to 'Rent an Item', :action => 'rent' %>
+ - <%=link_to 'Buy Merchandise', :action => 'buy_merch' %>
+
+
+
+ - <%=link_to 'End Purchase', :action => 'success_end' %>
-<%=link_to 'End Purchase', :action => 'index' %>