Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module records stock as individual stock units so that a product's original costs can be saved and matched against sales on a unit basis to report profit/loss. Each stock unit has any number of dated state records with costs, location, inventory state, etc.

The basic functionality seems to be in place, and may be usable enough to try.

TODO:

  • Write tests for StockUnitManager to ensure that future states are checked.
  • Write tests for Stock Checker to ensure that future states are checked when stock availability is checked.
  • Figure out how to handle added cost fields on Stock Unit State Records (e.g. a stock unit might be saved with a variety of costs, such as shipping, import, manufacturing, etc, which need to get saved to the state record).

Project information