Sha256: d71a8d34d9f307d00be6b60e8cfdfbf44b660b5f7311ef061894951ef34dcf1a

Contents?: true

Size: 721 Bytes

Versions: 77

Compression:

Stored size: 721 Bytes

Contents

module Spree
  module Admin
    module StockMovementsHelper
      def pretty_originator(stock_movement)
        if stock_movement.originator.respond_to?(:number)
          if stock_movement.originator.respond_to?(:order)
            link_to stock_movement.originator.number, [:edit, :admin, stock_movement.originator.order]
          else
            stock_movement.originator.number
          end
        else
          ''
        end
      end

      def display_variant(stock_movement)
        variant = stock_movement.stock_item.variant
        output = [variant.name]
        output << variant.options_text unless variant.options_text.blank?
        safe_join(output, '<br />'.html_safe)
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.1.15 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.1.14 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.0.8 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-3.7.14.1 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.1.13.1 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.0.7.1 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.0.7 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-3.7.14 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.1.13 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.0.6 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.2.0.rc2 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-3.7.13 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.0.5 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.1.12 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-3.7.12 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.2.0.rc1 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.0.4 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-3.7.11 app/helpers/spree/admin/stock_movements_helper.rb
spree_backend-4.1.11 app/helpers/spree/admin/stock_movements_helper.rb