Skip to content

Packs / erp-public

track-inventory-and-reorder

Track stock with moves (in/out), show on-hand per SKU and list SKUs at or below their reorder point

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-erp-public

Install

logicpacks pack use erp-public/track-inventory-and-reorder
get_pack erp-public/track-inventory-and-reorder

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: stdlib-sqlite
  • Checks: 2 in outcome/checks.yaml
  • Code: erp.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Track stock with moves (in/out), show on-hand per SKU and list SKUs at or below their reorder point

Goal

On-hand stock is always the sum of recorded moves, and the reorder report says what to buy.

Steps

  1. Create items with reorder points (item SKU NAME --reorder N).
  2. Every in/out is a move (PO receipt +, delivery -); never edit on-hand directly.
  3. stock for on-hand, reorder for the buy list, export-csv moves for audit.

Edge cases

  • Returns: a positive move with ref RET.
  • Stocktake differences: an adjustment move with a reason.

Don'ts

  • Don't allow negative stock (sales orders check on-hand first).