<% unless return_items.all?(&:received?)%> <% end %> <% if show_decision %> <% end %> <% return_items.each do |return_item| %> <% unless return_item.received? %> <% end %> <% if show_decision %> <% end %> <% end %>
<%= Spree.t(:product) %> <%= Spree.t(:sku) %> <%= Spree.t(:pre_tax_amount) %> <%= Spree.t(:preferred_reimbursement_type) %> <%= Spree.t(:exchange_for) %> <%= Spree.t(:acceptance_errors) %> <%= Spree.t(:reception_status) %><%= Spree.t(:item_received?) %>
<%= return_item.inventory_unit.variant.name %>
<%= return_item.inventory_unit.variant.options_text %>
<%= return_item.inventory_unit.variant.sku %> <%= return_item.display_pre_tax_amount %> <%= reimbursement_type_name(return_item.preferred_reimbursement_type) %> <%= return_item.exchange_variant.try(:exchange_name) %> <%= return_item.acceptance_status_errors %> <%= return_item.reception_status.humanize %> <%= form_for [:admin, return_item] do |f| %> <%= f.hidden_field 'reception_status_event', value: 'receive' %> <%= f.button Spree.t(:receive), class: 'fa icon_link no-text with-tip', "data-action" => 'save' %> <% end %> <%= button_to [:admin, return_item], { class: 'fa fa-thumbs-up icon_link no-text with-tip', params: { "return_item[acceptance_status]" => 'accepted' }, "data-action" => 'save', title: Spree.t(:accept), method: 'put' } do %> <%= Spree.t(:accept) %> <% end %> <%= button_to [:admin, return_item], { class: 'fa fa-thumbs-down icon_link no-text with-tip', params: { "return_item[acceptance_status]" => 'rejected' }, "data-action" => 'remove', title: Spree.t(:reject), method: 'put' } do %> <%= Spree.t(:reject) %> <% end %>