3 <p><b>Customer ID: </b><%= @customer.id.to_s %></p>
4 <p><b>Customer Name: </b><%= @customer.name.to_s %></p>
6 <p><b>Transaction Date: </b><%= @time %></p>
9 <p><b>Purchases:</b></p>
19 <% if not @debt.zero? %>
21 <td><b>Overdue Item Fees</b></td>
23 <td><%= number_to_currency(@debt) %></td>
26 <% for item in @items %>
28 <td><%=h item.title %></td>
29 <% if item.class == Video or item.class == Game %>
30 <td><%=h item.due_date %></td>
31 <td><%=h number_to_currency(item.calculated_price) %></td>
34 <td><%=h number_to_currency(item.price) %></td>
40 <td><b>Bonus: </b><%=h @bonus.title %></td>
42 <td>- <%= number_to_currency(@bonus.calculated_price) %></td>
48 <td><b><%= number_to_currency(@total) %></b></td>
54 <%= link_to 'Start a new Purchase', :action => 'begin' %>