Packs / erp-public
run-purchase-to-pay-with-3-way-match
Run purchase-to-pay: raise a PO, receive goods, and hold supplier bills that don't match PO price or received quantity
Install
logicpacks pack use erp-public/run-purchase-to-pay-with-3-way-matchget_pack erp-public/run-purchase-to-pay-with-3-way-matchThe 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: 1 in
outcome/checks.yaml - Code:
erp.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Run purchase-to-pay: raise a PO, receive goods, and hold supplier bills that don't match PO price or received quantity
Goal
We only pay for what we ordered and received, at the agreed price.
Steps
po SUPPLIER SKU:QTY:PRICE...receive PO SKU:QTY...(over-receipt refused).bill PO SKU:QTY:PRICE...-> exceptions list; PO status 'hold' until resolved, else 'billed'.
Edge cases
- Partial deliveries: bill only what was received.
- Price tolerance: set tol_pct for small rounding differences.
Don'ts
- Don't pay bills on hold.