Class: Skr::Sku

Inherits:
Model
  • Object
show all
Defined in:
lib/skr/sku.rb

Overview

A (S)tock (K)eeping (U)nit (SKU) is the cornerstone of Stockor

At it’s simplest form a SKU tracks a resource that the company controlls. It can be manufactured (by combining other SKUs), purchased, stored, and sold.

Although SKUs usually refer to physical item, it may also track intangibles such as “Labor”, “Handling”, or “Freight”

Instance Method Summary collapse

Instance Method Details

#rebuild!Object

Rebuilding is sometimes needed for cases where the location’s allocation/on order/reserved counts get out of sync with the SalesOrder counts. This forces recalculation of the cached values



61
62
63
# File 'lib/skr/sku.rb', line 61

def rebuild!
    sku_locs.each(&:rebuild!)
end