Sha256: 7030069b62192cdb5eb22ec6a949a11a4f34e4077dc40436de53fe6e1f8493f8

Contents?: true

Size: 319 Bytes

Versions: 85

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module Spree
  module Admin
    module StockLocationsHelper
      def admin_stock_location_display_name(stock_location)
        name_parts = [stock_location.admin_name, stock_location.name]
        name_parts.delete_if(&:blank?)
        name_parts.join(' / ')
      end
    end
  end
end

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
solidus_backend-3.1.9 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.1.8 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.0.8 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.0.7 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.11.17 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.1.7 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.11.16 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.0.6 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.1.6 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.11.15 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.11.14 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.0.5 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.1.5 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.11.13 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.0.4 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.1.4 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.11.12 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.0.3 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.1.3 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-3.1.2 app/helpers/spree/admin/stock_locations_helper.rb