Purchase Menu
Customer Information
- Customer ID: <%= @customer.id %>
- Customer Name: <%= @customer.name %>
- 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 %>
<% 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 'End Purchase', :action => 'success_end' %>