Receipt

Customer ID: <%= @customer.id.to_s %>

Customer Name: <%= @customer.name.to_s %>


Transaction Date: <%= @time %>


Purchases:

<% if not @debt.zero? %> <% end %> <% for item in @items %> <% if item.class == Video or item.class == Game %> <% else %> <% end %> <% end %> <% if @bonus %> <% end %>
Item Due Date Price
Overdue Item Fees <%= number_to_currency(@debt) %>
<%=h item.title %><%=h item.due_date %> <%=h number_to_currency(item.calculated_price) %> <%=h number_to_currency(item.price) %>
Bonus: <%=h @bonus.title %> - <%= number_to_currency(@bonus.calculated_price) %>
Total <%= number_to_currency(@total) %>

<%= link_to 'Start a new Purchase', :action => 'begin' %>