Sha256: fcba0ccab88b101658a06ca3a7d7224a14967ca5a83f828f7a916f0223236bbe

Contents?: true

Size: 996 Bytes

Versions: 11

Compression:

Stored size: 996 Bytes

Contents

<% carton.manifest_for_order(order).each do |item| %>
  <tr class="stock-item" data-item-quantity="<%= item.quantity %>">
    <td class="item-image">
      <%= render 'spree/admin/shared/image', image: item.variant.display_image, size: :mini %>
    </td>
    <td class="item-name">
      <%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
      <% if item.variant.sku.present? %>
        <strong><%= Spree::Variant.human_attribute_name(:sku) %>:</strong>
        <%= item.variant.sku %>
      <% end %>
    </td>
    <td class="item-price align-center"><%= item.line_item.single_money.to_html %></td>
    <td class="item-qty-show align-center">
        <% item.states.each do |state,count| %>
          <%= count %> x <%= Spree.t(state, scope: 'inventory_states') %>
        <% end %>
    </td>
    <td class="item-total align-center"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
  </tr>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_backend-2.3.1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.2.2 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.3.0 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.2.1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.2.0 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/orders/_carton_manifest.html.erb