# Inventory

Inventory in brewer.ai tracks physical stock movement and on-hand balances. The current workflow is transfer-first for finished beer inventory.

# Inventory model overview

  • Inventory Items represent finished beer lots by beer + format + date code.
  • Transfers represent movement requests and warehouse fulfillment actions.
  • Orders represent commercial records (sales/purchase intent), while linked transfers represent inventory execution.

# Finished beer lifecycle

  1. Packaging creates inventory items in the packaging facility/location.
  2. A transfer is requested (internal move, order fulfillment, buyback, etc.).
  3. Warehouse allocation selects specific inventory items/date codes.
  4. Transfer completion records movement transactions and updates on-hand by facility/location.

# Active inventory behavior

The system supports querying inventory "active as of date." Active rows use a far-future inactive date sentinel (9999-12-31) until inventory is fully depleted.

# Where to work with inventory

  • Inventory -> Transfers for movement requests and allocations
  • Inventory -> Beer On Hand for current balances and format-level inventory views
  • Batch Packaging for creation of new finished inventory