Walkthrough 2: Discount leakage in sales
Sales governance: thresholds checked at confirmation, duplicate customer purchase orders, the price lock and reconfirmation, and a quotation held, approved and carried to its order.
This is a fictional story. The company, the people and the numbers are invented. What Warden does at each step has been checked against the
MGCWardenmodel; where something could not be confirmed, the text says so. See the walkthroughs index for the cast and the rules these stories follow.
The situation
Larchfield Interiors supplies contract furniture (desks, seating and storage) to offices, hotels and universities. It sells through an internal sales desk that keys orders from customers' purchase orders, and through field sales staff who agree prices on site. It invoices after delivery. Its accounting currency is pounds sterling.
The people in this story:
| Person | Job | Warden role or grant |
|---|---|---|
| Ellis Marchetti | Sales operations analyst | Warden guard administrator (writes policies) |
| Taylor Voss | Commercial director | Warden controls owner (activates policies), plus a sales signing limit |
| Jesse Pryor | Sales desk coordinator | No Warden role; ordinary sales order access |
| Avery Lund | Regional sales manager | Their own sales role, plus the duty Decide Warden sales governance approvals |
| Kit Ramsay | Sales desk supervisor | A small custom role carrying the privilege Register Warden duplicate overrides |
The problem
Larchfield's margin review for the last half-year found three separate leaks.
- Discounts. Line discounts of 20 per cent or more were appearing on orders without anyone above the sales desk having seen them. The standard order entry screens accepted whatever was keyed.
- Duplicate orders. One large customer's procurement system re-sent purchase orders after a timeout. Twice in six months the same purchase order was keyed as two sales orders and shipped twice; the second shipment was returned at Larchfield's cost.
- Prices changed after confirmation. Unit prices were being edited after the order had been confirmed to the customer and before it was picked, so the customer's confirmation no longer matched what was invoiced.
What they decided
Ellis entered one policy on System administration → Setup → Sales governance policies:
| Setting | Value | Why |
|---|---|---|
| Policy code | SALES-DISC | |
| Applies to | Both | Quotations and sales orders |
| Enforcement posture | Block | A breach holds the document and asks for approval. Warn would record and let it through |
| Duplicate detection posture | Block | A repeated customer requisition is refused until a supervisor overrides it |
| Duplicate lookback (days) | 365 | The default. Zero would mean no limit |
| Cross-company duplicate check | No | Larchfield has one legal entity |
| Price lock | Yes | Unit price changes after commitment are recorded and gated |
| Reconfirmation required | Yes | |
| Invoice posture | Route and post | Larchfield ships first and bills afterwards |
On the Thresholds tab, two rows covering all customers and all items:
| Sales measure | Threshold | Breaches when |
|---|---|---|
| Discount percent | 15 | The largest line discount percentage on the order is 15 or more |
| Margin percent | 22 | The margin is 22 per cent or less |
Warden measures margin from a cost basis worked out per line. If no cost can be found for a line, the margin measure is skipped for it and the skip is recorded; Warden does not assume a margin. The discount measure reads the line discount percentage. Discount amounts and header discounts affect the order only through margin.
They also agreed:
- Signing limits on System administration → Setup → Signing limits: Avery, Document type
SalesOrder, Signing limit type Approval, Amount 25,000; Taylor, the same, 150,000. - Workflows: a Warden sales governance policy activation workflow assigned to Taylor, and a Warden sales governance approval workflow assigned to Avery.
- Duplicate overrides: the privilege to register one ships in no role. Larchfield gave it to Kit, who does not enter orders. The separation between the person entering the order and the person overriding is what Block means here.
- Feature: Warden Sales Governance switched on in Feature management. It is off by default.
Unlike guard control policies, sales governance policies have no Simulate action. Ellis and Taylor agreed to watch the first month's holds closely instead.
Walking through it
1. Two people put the policy into force
Ellis presses Submit for activation. A Warden sales governance policy activation work item reaches Taylor, who approves it. The policy becomes active from the day of approval. Ellis could not have approved it: Warden refuses an approval by the person who submitted the version. See the controls owner's guide.
2. An order with a large discount meets confirmation
A university orders 160 task chairs. The field sales manager has promised 20 per cent off list. Jesse keys the order with a line discount of 20 per cent and saves it. Nothing happens at save: order creation and ordinary saves do not trigger sales governance.
Jesse posts the confirmation. It is refused:
Sales order SO-018832 is under a Warden sales governance hold: a policy threshold was breached . Confirmation is gated until the sales governance approval completes or the hold is released. This is a governance hold, not a missing confirmation: confirming or reposting the order will not clear it. The breached measure and threshold are on the order Warden governance event log.
Behind the scenes, at the confirmation attempt and before the hold is read, Warden evaluated the order against the active policy using figures measured at that moment, not the figures from when the order was keyed. The discount measure found 20, at or above the threshold of 15. Warden placed a sales governance hold, recorded the breach, and started the Warden sales governance approval workflow then and there; there is no batch delay for sales. The refusal is recorded on the event log out of band, so it survives the rollback the refusal itself causes.
Jesse posts confirmation
|
v
Warden measures discount, margin, credit exposure, order value (as they are now)
|
+-- no breach ------------> confirmation proceeds
|
+-- discount 20 >= 15 ----> hold placed, approval started, confirmation refused
See the guide for sales and journal users.
Screenshot to add: the sales order with the refusal message and the Warden change sets FactBox.
3. Avery decides
Avery opens the work item. Its document is the order's row on Reconfirmation tracking, where the Breach that fired group shows Measure that fired Discount percent, Measured value at breach 20, Threshold at breach 15, Missed by, Measured at, and Breach detail, which gives every measure and every line in the words written to the event log.
Avery calls the field sales manager, confirms the discount was agreed for a three-year framework and presses Approve. At that moment Warden checks Avery's signing limit against the order value, the sum of the order lines in accounting currency: £17,600, inside Avery's £25,000. The approval goes through and the hold is released.
Jesse posts the confirmation again. Warden sees that the order's governed content has not changed since it was evaluated and does not evaluate it again, so the confirmation posts.
Had the order been worth £40,000, Avery's approval would have been refused with a message naming the amount, Avery's limit and the users whose limit covers it, Taylor among them, so that Avery could delegate the work item. See the approver's guide.
4. The same purchase order, twice
On a Monday morning Jesse receives purchase order 4500-7781 from a hotel group, keys a new sales
order and enters 4500-7781 in the customer requisition field. When Jesse saves the new order,
Warden refuses the save:
Customer requisition 4500-7781 duplicates order SO-018790 and policy SALES-DISC v1 blocks duplicates. An override cannot be registered for this order because it has not been saved yet and an override is keyed to an order number. Save the order WITHOUT the customer requisition, then set the requisition on the saved order and register the override from Manage > Warden before saving again.
Jesse looks up SO-018790. It was keyed on Friday from the same purchase order, with the same lines. This is the procurement system's re-send. Jesse abandons the new order. Nothing was shipped twice.
Warden checks for duplicates when an order is created and when its customer or requisition changes, looking back over the Duplicate lookback (days).
5. A genuine repeat, overridden by someone else
Later that week the same hotel group sends a call-off against a blanket purchase order: the requisition number is again 4500-7781, deliberately, because the customer's process reuses it for every call-off. Jesse follows the instruction in the message: saves the order without the requisition, then sets the requisition on the saved order and saves. This time the refusal reads:
Customer requisition 4500-7781 duplicates order SO-018790 and policy SALES-DISC v1 blocks duplicates. To proceed, register a reason-coded override against this order: Manage > Warden > Register duplicate override. That is a separate privilege held by a supervisor rather than by order entry - the separation is what Block posture means.
Jesse cannot register the override. Kit can. Kit opens the order, goes to the Manage tab, and in the Warden group presses Register duplicate override. The dialog asks for the Customer requisition and a Reason. Kit enters Call-off 3 of 6 against blanket PO 4500-7781; customer reuses the PO number for each call-off. Warden replies:
Duplicate override registered: order SO-018851 may share customer requisition 4500-7781 with SO-018790. Reason: Call-off 3 of 6 against blanket PO 4500-7781; customer reuses the PO number for each call-off.
Jesse sets the requisition and saves again, and the save goes through. The override is listed on Duplicate override inquiry, which the Duplicate overrides button in the same group also opens.
6. A price changed after confirmation
SO-018702 was confirmed to an office customer a week ago: 40 storage units at £310 each. The customer's facilities manager negotiates £295 with the field sales manager, who asks Jesse to update the order. Jesse edits the unit price and saves.
The edit is not refused; the price lock never blocks typing. Behind the scenes Warden sees that the order has posted a confirmation, records the change as a change diff set against the order, visible in the Warden change sets FactBox, and flags the order Reconfirmation required. The event log records a price lock row along the lines of "Price lock: unit price on SO-018702 line 1 … changed from 310.00 to 295.00 after the order was committed, under policy SALES-DISC v1 … the order now requires reconfirmation before it can be picked, packed or invoiced."
That afternoon the warehouse posts picking lists. SO-018702's is refused:
Sales order SO-018702 requires customer reconfirmation after governed changes. Picking list posting is gated until a new order confirmation is posted, which clears the requirement automatically.
The warehouse supervisor calls Jesse. Jesse posts a new order confirmation, which sends the customer the revised price. Posting a confirmation is never refused for this reason, because it is what clears the requirement. Warden re-runs the full threshold evaluation (the margin at £295 is still above 22 per cent, so there is no breach), clears the requirement, and records "Reconfirmation posted and cleared: confirmation … posted for order SO-018702." On Reconfirmation tracking the order's Reconfirmation state moves from Required to Cleared. The picking list posts on the next attempt.
Had the new price taken the margin to 22 per cent or below, the new confirmation would have found a breach, been refused under a hold, and gone to Avery like step 2.
7. A quotation held, approved and carried
A hotel group asks for a quotation for a 120-room refurbishment. The field sales manager proposes 18 per cent off. Jesse creates the quotation and tries to send it. The send is refused:
Quotation SQ-004417 is held by Warden sales governance and cannot be sent to the customer until the governance approval completes.
Warden places a hold on the quotation and starts the Warden sales governance approval workflow, which reaches Avery. The quotation is worth £96,000, well above Avery's limit, but signing limits do not apply to quotations in this build: Warden records that the quotation has no established amount basis and no signing limit applies. Larchfield's own rule is that quotations above Avery's sales order limit go to Taylor, so Avery delegates. Taylor approves. Jesse sends the quotation. If Jesse had tried to confirm the quotation into an order instead of sending it, that would have been refused in the same way: the hold cannot be walked around by skipping the send.
Three weeks later the customer accepts, unchanged. Jesse confirms the quotation into a sales order. Warden copies the quotation's approval to the new order and records Approval carried from quotation, saying the approval of SQ-004417 is carried to the new order, which derived within tolerance. When Jesse confirms the order, it is not held again. Nobody approves the same discount twice.
Two things would have stopped the approval carrying. If the order's total had differed from the quotation's (in this version, any difference), Warden would have recorded that the derivation was outside tolerance and that re-evaluation is required. If the quotation had been edited after it was approved, Warden would have recorded that the quotation approval had lapsed. In both cases the order is evaluated normally at its first confirmation.
The outcome
- Discounts at or above 15 per cent were seen and decided by a manager before the customer received a confirmation, and each decision is on the order's governance event log with the measure, the threshold and the figure measured.
- The procurement system's re-send was caught before a second order existed. The genuine repeat went through with a reason, recorded under a different person's name from the person who keyed it.
- A price changed after confirmation could not be picked until the customer had been sent a new confirmation.
- A large quotation was approved once, and the approval followed it into the order.
Warden did not stop the field sales team offering discounts; it made sure someone with authority saw them before they were committed. It did not judge whether 20 per cent was a good price.
What this story simplified
- Setup off stage. Feature enablement, Initialize Warden, the two workflows and the custom override role are configured before the story starts. See Getting started and the configuration reference.
- Approval duties. Warden ships the sales governance approval duty on the Warden controls owner role as a floor. Larchfield added it to Avery's role. See the security model.
- Price lock covers the unit price. The price lock watches the unit price on lines of an order that has posted a confirmation, picking list, packing slip or invoice. Prices changed before confirmation are ordinary order entry and are not watched.
- Enforcement posture Warn. On Warn, the same breaches are recorded and a warning is shown, but nothing is held, nothing is refused and no reconfirmation is required. Warn turns the policy from a control into a record.
- Invoicing. With Invoice posture Route and post, a breach found for the first time at invoicing is recorded and routed, and the invoice still posts. Block refuses it. An order already held or awaiting reconfirmation is refused at invoicing either way.
- Cost basis. Margin depends on a cost being found for each line. Where none is, the margin check is skipped for that line and the skip is recorded.
- The sweep. If a policy changes while orders are already evaluated, the Sales governance policy sweep re-evaluates open orders. See sales governance sweep.
- Message text. The quoted messages show Warden's wording with this story's document numbers. Where Warden fills in amounts and dates, the formatting follows the session.