<% if form.object.new_record? %> N/A <% else -%> <% Piggybak::LineItem.sorted_line_item_types.each do |type| -%> <% end -%> <% if form.object.status != "cancelled" -%> <% end -%>
<%= type.to_s.pluralize.titleize %> <%= number_to_currency form.object.send("#{type}_charge") %>
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") %>
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 -%>