<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Customer Returns' } %> <% admin_breadcrumb("#{Spree::Reimbursement.model_name.human} #{@reimbursement.number}") %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t(:back_to_customer_return), url_for([:edit, :admin, @order, @reimbursement.customer_return]) %>
  • <% end %> <%= render partial: 'spree/shared/error_messages', locals: { target: @reimbursement } %>
    <%= Spree.t(:items_reimbursed) %> <% @reimbursement.return_items.each do |return_item| %> <% end %>
    <%= Spree::Product.model_name.human %> <%= Spree::ReturnItem.human_attribute_name(:preferred_reimbursement_type_id) %> <%= Spree::ReturnItem.human_attribute_name(:override_reimbursement_type_id) %> <%= Spree::ReturnItem.human_attribute_name(:exchange_variant) %> <%= Spree::ReturnItem.human_attribute_name(:amount) %> <%= Spree::ReturnItem.human_attribute_name(:total) %>
    <%= return_item.inventory_unit.variant.name %>
    <%= return_item.inventory_unit.variant.options_text %>
    <%= reimbursement_type_name(return_item.preferred_reimbursement_type) %> <%= reimbursement_type_name(return_item.override_reimbursement_type) %> <%= return_item.exchange_variant.try(:exchange_name) %> <%= return_item.display_amount %> <%= return_item.display_total %>
    <%= Spree::Refund.model_name.human %> <% @reimbursement.refunds.each do |refund| %> <% end %>
    <%= Spree::Refund.human_attribute_name(:description) %> <%= Spree::Refund.human_attribute_name(:amount) %>
    <%= refund.description %> <%= refund.display_amount %>
    <%= Spree.t(:credits) %> <% @reimbursement.credits.each do |credit| %> <% end %>
    <%= Spree.t(:description) %> <%= Spree::Reimbursement::Credit.human_attribute_name(:amount) %>
    <%= credit.description %> <%= credit.display_amount %>