Sha256: 84244d3b1b7ec54dc5cbaa442d5a8b17f190338ddf31b97ebe0dd571a1f7e770
Contents?: true
Size: 709 Bytes
Versions: 89
Compression:
Stored size: 709 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 += "<br>(#{variant.options_text})" unless variant.options_text.blank? output.html_safe end end end end
Version data entries
89 entries across 89 versions & 2 rubygems