# 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

- **Space:** erp-public (https://github.com/Tech-Realm/space-erp-public/tree/main/run-purchase-to-pay-with-3-way-match)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** stdlib-sqlite; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use erp-public/run-purchase-to-pay-with-3-way-match` or MCP `get_pack erp-public/run-purchase-to-pay-with-3-way-match`
- **Files:** CHANGELOG.md, code/erp.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (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.



---

Canonical URL: https://logicpacks.io/packs/erp-public/run-purchase-to-pay-with-3-way-match

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
