Customer ID: <%= @customer.id.to_s %>
Customer Name: <%= @customer.name.to_s %>
Transaction Date: <%= @time %>
Purchases:
Item | Due Date | Price | ||
---|---|---|---|---|
Overdue Item Fees | <%= number_to_currency(@debt) %> | |||
<%=h item.title %> | <% if item.class == Video or item.class == Game %><%=h item.due_date %> | <%=h number_to_currency(item.calculated_price) %> | <% else %><%=h number_to_currency(item.price) %> | <% end %>|
Bonus: <%=h @bonus.title %> | - <%= number_to_currency(@bonus.calculated_price) %> | |||
Total | <%= number_to_currency(@total) %> |