<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Customer Returns' } %> <% content_for :page_actions do %> <% if can? :create, Spree::CustomerReturn %>
  • <%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order) %>
  • <% end %> <% end %> <% admin_breadcrumb(plural_resource_name(Spree::CustomerReturn)) %> <% if @customer_returns.any? %> <% @customer_returns.each do |customer_return| %> <% end %>
    <%= Spree::CustomerReturn.human_attribute_name(:number) %> <%= Spree::CustomerReturn.human_attribute_name(:total_excluding_vat) %> <%= Spree::CustomerReturn.human_attribute_name(:total) %> <%= Spree::CustomerReturn.human_attribute_name(:created_at) %> <%= Spree::CustomerReturn.human_attribute_name(:reimbursement_status) %>
    <%= link_to customer_return.number, edit_admin_order_customer_return_path(@order, customer_return) %> <%= customer_return.display_total_excluding_vat.to_html %> <%= customer_return.display_total.to_html %> <%= pretty_time(customer_return.created_at) %> <% if customer_return.fully_reimbursed? %> <%= Spree.t(:reimbursed) %> <% else %> <%= Spree.t(:incomplete) %> <% end %> <%= link_to_edit_url edit_admin_order_customer_return_path(@order, customer_return), title: "admin_edit_#{dom_id(customer_return)}", no_text: true %>
    <% else %>
    <%= render 'spree/admin/shared/no_objects_found', resource: Spree::CustomerReturn, new_resource_url: new_object_url %>
    <% end %>