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::Core::Configuration#default_location_code}
# File lib/skr/location.rb, line 19 def self.default Location.find_by_code( Core.config.default_location_code ) end
Private Instance Methods
set_defaults()
click to toggle source
# File lib/skr/location.rb, line 25 def set_defaults self.gl_branch_code ||= Skr::Core.config.default_branch_code true end