1 <h1>Customer Transaction</h1>
3 <h3>Customer Information</h3>
5 <li>Customer ID: <%= @customer.id %></li>
6 <li>Customer Name: <%= @customer.name %></li>
7 <li>Customer Debt: <%= number_to_currency(@customer.debt) %></li>
8 <li>Price for this transaction: <%= number_to_currency(@total_price) %></li>
9 <li>Total Amount Owed: <%= number_to_currency(@customer.debt + @total_price) %></li>
12 <h3>Items Purchased</h3>
13 <% if @items.empty? %>
17 <% for item in @items %>
18 <li><%= item.title %></li>
25 <li><%=link_to 'Rent an Item', :action => 'rent' %></li>
26 <li><%=link_to 'Buy Merchandise', :action => 'buy_merch' %></li>
30 <li><%=link_to 'Checkout', :action => 'receipt' %></li>