Section 6

Acceptance and trace

Every Then line is something a tester can check without asking anyone: a state, a number, a count or a time. The matrix at the bottom links each test back to its rules and questions, with the evidence columns a verification pass fills in.

AC-01

Small order approves on issue

Given
A buyer with the standard role and an active vendor and items.
When
The buyer issues an order totaling $1,590.00.
Then
  • The order is Approved with no approver task created.
  • One approval record shows the buyer, tier "buyer", decision "approved".
AC-02

Larger order routes by tier, and the buyer cannot approve it

Given
An order totaling $12,000.00.
When
The buyer submits it, then tries to approve it.
Then
  • The order is Pending approval with one task for the purchasing manager.
  • The buyer's approve action is refused, and the refusal is in the audit trail.
  • An order of $25,000.01 routes to the controller instead.
AC-03

Partial receipt leaves the remainder open

Given
PO-10482 approved, line 1 for 100 boxes at $12.50, line 2 for 50 at $6.80.
When
The receiver posts 60 boxes on line 1 and 50 on line 2.
Then
  • Line 1 open quantity is 40; line 2 open quantity is 0.
  • The order is Partially received.
  • Stock rises by 60 and 50 in the same transaction as the receipt.
  • The accrual posted is $1,090.00.
AC-04

Over-receipt is refused

Given
Line 1 of PO-10482 has 40 boxes open.
When
The receiver posts 41 boxes.
Then
  • Nothing posts.
  • The message states that 40 boxes are open.
AC-05

Billing beyond receipts opens a QTY hold

Given
60 boxes received on line 1.
When
An invoice bills 100 boxes on line 1.
Then
  • A QTY hold opens on the invoice with a variance of 40 boxes.
  • The invoice is On hold and cannot be approved for payment.
AC-06

Price over tolerance opens a PRICE hold

Given
Line 1 ordered at $12.50.
When
An invoice bills 100 boxes at $12.90.
Then
  • A PRICE hold opens showing $0.40 per box, $40.00 on the line, 3.2%.
  • The hold is assigned to the buyer on the order.
  • At $12.62 (0.96%, $12.00 on the line) no hold opens.
  • At $12.40 no hold opens and a favorable variance of $10.00 is recorded.
AC-07

A receipt releases a QTY hold without anyone touching it

Given
INV-000318 on a QTY hold for 40 boxes and a PRICE hold.
When
GR-7724 posts the remaining 40 boxes.
Then
  • The QTY hold is released by the system within 60 seconds, with reason "GR-7724".
  • The PRICE hold is still open.
  • No user action was needed.
AC-08

Exact duplicate is blocked at capture

Given
INV-000318 saved for Kestrel Fasteners, number KF-20417, $1,630.00.
When
A clerk enters Kestrel Fasteners, number "KF20417", $1,630.00.
Then
  • No invoice record is created.
  • The clerk sees INV-000318 and its capture date.
  • One audit entry records the blocked attempt.
  • Numbers "kf 20417" and "KF-020417" are blocked the same way.
AC-09

Same number, new amount waits for the AP lead

Given
INV-000318 saved for KF-20417 at $1,630.00.
When
A clerk enters KF-20417 for $1,590.00.
Then
  • The invoice is saved on a Possible duplicate hold.
  • The AP clerk's release action is refused; the AP lead's succeeds.
AC-10

Same amount within ten days waits for the AP lead

Given
INV-000318 dated 11/04/2026 for $1,630.00.
When
A clerk enters KF-20471 for $1,630.00 dated 11/05/2026.
Then
  • The invoice is saved on a Possible duplicate hold.
  • The same invoice dated 11/15/2026 (11 days later) is not held.
AC-11

Every state change leaves one audit entry

Given
The three exception paths run end to end.
When
The audit trail for PO-10482 and its invoices is exported.
Then
  • Each state change on the diagram has exactly one entry, with user, timestamp, from and to state, and reason.
  • An attempt to edit or delete an entry is refused.
AC-12

Separation of duties is enforced by the system

Given
One user holding both the buyer and receiver roles, and one holding AP clerk and treasury.
When
Each tries the second action on the same transaction.
Then
  • The buyer of PO-10482 cannot post its receipt.
  • The clerk who captured INV-000318 cannot release a run containing it.
  • The proposer of a run cannot release it.
  • A user who changed Kestrel's bank details 30 days ago cannot propose a payment to Kestrel.
AC-13

Material change sends the order back for approval

Given
PO-10482 approved at $1,590.00.
When
The buyer raises line 1 to 110 boxes (total $1,715.00, up 7.9%).
Then
  • The order returns to Pending approval as revision 2.
  • A change to 104 boxes (total $1,640.00, up 3.1%) does not.
AC-14

Held invoices never reach a payment run

Given
Ten approved invoices due this week and two on hold.
When
The AP lead proposes a run.
Then
  • The run holds exactly the ten approved invoices.
  • Adding a held invoice by hand is refused.
AC-15

Orders need an active vendor

Given
A vendor on purchasing hold.
When
A buyer submits an order to that vendor.
Then
  • The submit is refused with the vendor's hold reason.
AC-16

Close short stops further receipts and billing

Given
Line 1 with 40 boxes open.
When
The buyer closes it short with reason "discontinued by vendor".
Then
  • Line 1 closed-short quantity is 40 and open quantity is 0.
  • A receipt or invoice for those 40 boxes is refused or held.
  • Closing without a reason is refused.
AC-17

Invoices must reference an order line

Given
Release 1 settings.
When
A clerk tries to capture an invoice line with no order line.
Then
  • The line is refused with a message naming decision D-01.
AC-18

The duplicate check is fast at volume

Given
2,000,000 invoices on file.
When
1,000 captures run the duplicate check.
Then
  • 95% return in under 1 second.

Traceability matrix

Build, expected, actual, defect and retest stay empty here: they are filled in against a real build during the verification milestone, so the same file becomes the handoff evidence.