<%= check_box_tag "inventory_units[#{inventory_unit.id}]",
:true,
(inventory_unit.shipment == @shipment),
{ :disabled => %w(shipped backordered returned).include?(inventory_unit.state),
:class => 'inventory_unit'} %>
|
<%= inventory_unit.variant.sku %> |
<%=inventory_unit.variant.product.name %>
<%= "(" + variant_options(inventory_unit.variant) + ")" unless inventory_unit.variant.option_values.empty? %>
|
<%= t(inventory_unit.state) %> |
<% if inventory_unit.shipment == @shipment %>
<%= t('included_in_this_shipment') %>
<% elsif !inventory_unit.shipment.nil? %>
<%= t('included_in_other_shipment') %> - <%= link_to inventory_unit.shipment.number, edit_admin_order_shipment_url(inventory_unit.order, inventory_unit.shipment) %>
<% end %>
|
<% end %>