%= render partial: 'spree/admin/shared/order_tabs', locals: {current: 'Cancel Inventory'} %> <% admin_breadcrumb(Spree.t(:cancel_inventory)) %>
<%= Spree::LineItem.human_attribute_name(:description) %> | <%= Spree::OrderCancellations.human_attribute_name(:quantity) %> | <%= Spree::OrderCancellations.human_attribute_name(:state) %> | <%= Spree::OrderCancellations.human_attribute_name(:shipment) %> | <%= Spree::OrderCancellations.human_attribute_name(:cancel) %> | <%= form_for :inventory_units, url: short_ship_admin_order_cancellations_path(@order) do |f| %> <% @inventory_units.each do |inventory_unit| %>|
---|---|---|---|---|---|
<%= render 'spree/admin/shared/image', image: inventory_unit.variant.display_image, size: :mini %> |
<%= inventory_unit.variant.product.name %> <%= "(" + variant_options(inventory_unit.variant) + ")" unless inventory_unit.variant.option_values.empty? %> <% if inventory_unit.variant.sku.present? %> <%= Spree::Variant.human_attribute_name(:sku) %>: <%= inventory_unit.variant.sku %> <% end %> |
1 | <%= Spree.t(inventory_unit.state, scope: :inventory_states) %> | <%= inventory_unit.shipment.number %> | <%= check_box_tag 'inventory_unit_ids[]', inventory_unit.id %> |
<%= f.submit Spree.t(:cancel_inventory) %> |