Skip to content

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

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

Install

logicpacks pack use erp-public/run-purchase-to-pay-with-3-way-match
get_pack erp-public/run-purchase-to-pay-with-3-way-match

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: 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

  1. po SUPPLIER SKU:QTY:PRICE...
  2. receive PO SKU:QTY... (over-receipt refused).
  3. 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.