class Skr::Location
A location that holds inventory
Public Class Methods
default()
click to toggle source
@return [Location] the location that's specified by {Skr::Configuration#default_location_code}
# File lib/skr/models/location.rb, line 25 def self.default Location.find_by_code( Skr.config.default_location_code ) end
Public Instance Methods
get_logo()
click to toggle source
# File lib/skr/models/location.rb, line 20 def get_logo self.logo.present? ? self.logo : Lanes::SystemSettings.config.logo end
Private Instance Methods
set_defaults()
click to toggle source
# File lib/skr/models/location.rb, line 31 def set_defaults self.gl_branch_code ||= Skr.config.default_branch_code true end