% allow_return_item_changes = !@return_authorization.customer_returned_items? %>
<% if allow_return_item_changes %> <%= check_box_tag 'select-all' %> <% end %> | <%= Spree.t(:product) %> | <%= Spree.t(:state) %> | <%= Spree.t(:charged) %> | <%= Spree.t(:pre_tax_refund_amount) %> | <%= Spree.t(:reimbursement_type) %> | <%= Spree.t(:exchange_for) %> |
---|---|---|---|---|---|---|
<% if editable %> <%= item_fields.hidden_field :inventory_unit_id %> <%= item_fields.check_box :_destroy, {checked: return_item.persisted?, class: 'add-item', "data-price" => return_item.pre_tax_amount}, '0', '1' %> <% end %> |
<%= inventory_unit.variant.name %>
|
<%= inventory_unit.state.humanize %> | <%= return_item.display_pre_tax_amount %> | <% if editable %> <%= item_fields.text_field :pre_tax_amount, { class: 'refund-amount-input form-control' } %> <% else %> <%= return_item.display_pre_tax_amount %> <% end %> | <% if editable %> <%= item_fields.select :preferred_reimbursement_type_id, @reimbursement_types.collect{|r|[r.name.humanize, r.id]}, {include_blank: true}, {class: 'select2'} %> <% end %> | <% if editable %> <% if return_item.exchange_processed? %> <%= return_item.exchange_variant.options_text %> <% else %> <%= item_fields.collection_select :exchange_variant_id, return_item.eligible_exchange_variants, :id, :options_text, { include_blank: true }, { class: "select2 return-item-exchange-selection" } %> <% end %> <% end %> |