<% Piggybak::LineItem.sorted_line_item_types.each do |type| -%>
<%= type.to_s.pluralize.titleize %> |
<%= number_to_currency form.object.send("#{type}_charge") %> |
<% end -%>
Total |
<%= number_to_currency form.object.total %> |
Balance Due |
<%= number_to_currency form.object.total_due %> |
Created at |
<%= form.object.created_at.strftime("%m-%d-%Y") %> |
<% if form.object.status != "cancelled" -%>
Actions |
- <%= link_to "Send or Resend Email Confirmation", piggybak.email_order_url(form.object.id) %>
- <%= link_to "View as Text", piggybak.download_order_url(form.object.id) %>
<% if form.object.total_due == 0.00 -%>
- <%= link_to "Cancel Order", piggybak.cancel_order_url(form.object.id) %> (This does not refund payments.)
<% end -%>
|
<% end -%>
<% end -%>