<%= render :partial => 'spree/admin/shared/stock_sub_menu' %> <%= render :partial => 'transfer_item_template' %> <%= render :partial => "spree/admin/variants/autocomplete", :formats => :js %> <% content_for :page_title do %> <%= "#{Spree.t(:receiving)} #{@stock_transfer.number}" %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path, :icon => 'arrow-left' %>
  • <%= button_link_to Spree.t(:close), '#', :icon => 'lock', :id => 'close-transfer-button' %>
  • <% end %>
    <%= Spree.t(:you_cannot_undo_action) %>
    <%= Spree.t('close_stock_transfer.will_cause') %>:
    <%= Spree.t(:are_you_sure_close_stock_transfer) %>
    <%= link_to Spree.t(:no_dont_close), '#', :id => 'cancel-close-link' %> <%= link_to Spree.t(:yes_close), close_admin_stock_transfer_path(@stock_transfer), { method: 'put' } %>
    From: <%= @stock_transfer.source_location.admin_name %> To: <%= @stock_transfer.destination_location.admin_name %>
    <%= @stock_transfer.received_item_count %> / <%= @stock_transfer.expected_item_count %> Received
    <%= Spree.t(:variant_to_be_received) %>
    <%= hidden_field_tag :stock_transfer_number, @stock_transfer.number %> <%= hidden_field_tag :variant_display_attributes, @variant_display_attributes.to_json %> <%= text_field_tag :transfer_item_variant_id, "", :class => "variant_autocomplete fullwidth" %>
    <%= Spree.t(:received_items) %> <%= render partial: 'transfer_item_table', locals: { transfer_items: @received_items, show_expected: false, show_received: true, show_actions: true } %>