Sha256: 172d52eb47c917e14d05c3d5b9b42cbcf372b5fbe0ecc3f7f53465f8ce12da72

Contents?: true

Size: 1.03 KB

Versions: 30

Compression:

Stored size: 1.03 KB

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.gallery.images.first || item.variant.product.gallery.images.first),
        size: :mini %>
    </td>
    <td class="item-name">
      <%= link_to item.variant.product.name, edit_admin_product_path(item.variant.product) %><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"><%= item.line_item.single_money.to_html %></td>
    <td class="item-qty-show">
        <% item.states.each do |state,count| %>
          <%= count %> x <%= t(state, scope: 'spree.inventory_states') %>
        <% end %>
    </td>
    <td class="item-total"><%= item.line_item.display_amount %></td>
  </tr>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
solidus_backend-4.1.1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-4.0.2 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-3.4.4 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-3.4.3 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-4.0.1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-4.1.0 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-4.0.0 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-3.4.2 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-3.4.1 app/views/spree/admin/orders/_carton_manifest.html.erb
solidus_backend-3.4.0 app/views/spree/admin/orders/_carton_manifest.html.erb