Rules and permissions
Each rule is one testable sentence with its numbers in it. On the left of every rule is where it came from (the question that produced it); on the right is what proves it (the tests). A rule with no test fails the build.
Exact duplicate is blocked
ST-3Before saving, the invoice number is normalized (keep letters and digits only, uppercase, drop leading zeros). If an invoice that is not voided has the same vendor, the same normalized number and the same gross amount, the new invoice is blocked: it is never saved as payable, and the clerk is shown the original.
Near duplicate is held
ST-3Same vendor and normalized number with a different gross amount, or same vendor and gross amount with an invoice date within 10 days of another invoice, puts the new invoice on a Possible duplicate hold. Only the AP lead can clear it (to matching) or reject it.
Price tolerance
ST-4An invoice unit price may exceed the order unit price by at most 1.0%, and the line's price variance (billed quantity times the unit difference) may not exceed $25.00. Breaking either opens a PRICE hold. A price below the order price passes, and the favorable variance is recorded.
Holds re-match themselves
ST-4A held invoice is re-matched automatically whenever a receipt, an order revision, or a credit memo touches its order. Holds that no longer apply are released by the system with the triggering document as the reason. PRICE holds belong to the buyer; possible-duplicate holds to the AP lead.
Only clean invoices are approved
ST-5An invoice with no open holds is approved for payment automatically. Its due date is the invoice date plus the vendor's terms (Net 30 for Kestrel Fasteners). An invoice released by a controller override needs AP lead approval.
Postings handed to Finance
ST-2A receipt posts an accrual at the order price (inventory against receipts-not-invoiced). A matched invoice clears the accrual into accounts payable, and any price difference posts to the price variance account. Valuation basis is pending decision D-02.
Separation of duties
Enforced by the system on the same transaction, not written as policy. Each one is tested.
The buyer on an order cannot post a receipt against it.
The clerk who captured an invoice cannot release a payment run containing it.
The user who proposed a payment run cannot release it.
A user who changed a vendor's bank details in the last 90 days cannot propose or release a payment to that vendor.
Permission matrix
Roles are job functions, not people. One person may hold several roles, subject to the separation-of-duties rules. A blank cell means no access.
| Action | Requester | Buyer | Purchasing manager | Receiver | AP clerk | AP lead | Controller | Treasury | Vendor admin | Rules |
|---|---|---|---|---|---|---|---|---|---|---|
Create or change an order P-CREATE-PO | request only | Yes | BR-01BR-03 | |||||||
Approve an order P-APPROVE-PO | up to $2,500 | up to $25,000 | any amount | BR-02 | ||||||
Post a receipt P-RECEIVE | Yes | BR-04BR-05SOD-01 | ||||||||
Close a line short P-CLOSE-SHORT | own orders, reason required | reason required | BR-06 | |||||||
Capture an invoice or credit memo P-CAPTURE-INV | Yes | Yes | BR-07BR-08 | |||||||
Clear or reject a possible duplicate P-RELEASE-DUP | Yes | BR-09 | ||||||||
Resolve a price hold P-RESOLVE-PRICE | confirm price, or amend within limit | request credit memo | BR-11BR-12 | |||||||
Override a match hold P-OVERRIDE-HOLD | reason required | BR-13 | ||||||||
Propose a payment run P-PROPOSE-RUN | Yes | BR-14SOD-03SOD-04 | ||||||||
Release a payment run P-RELEASE-RUN | second approval over $50,000 | Yes | BR-14SOD-02SOD-03SOD-04 | |||||||
Change vendor bank details P-VENDOR-BANK | with call-back verification | SOD-04 | ||||||||
Read the audit trail P-READ-AUDIT | purchasing records | AP records | all | BR-16 |