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
Install
logicpacks pack use erp-public/track-inventory-and-reorderget_pack erp-public/track-inventory-and-reorderThe 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
- Create items with reorder points (
item SKU NAME --reorder N). - Every in/out is a move (PO receipt +, delivery -); never edit on-hand directly.
stockfor on-hand,reorderfor the buy list,export-csv movesfor 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).