Order Management
41
Open orders
6
Stuck over 5 days
88K
Shipped, not invoiced
3
Lines that do not reconcile
Halden Foods, 4471
18,400 · 2 days
Vantor, 4468
6,200 · 1 day
Northrise, 4455
2 of 5 lines · no date for rest
Kestrel, 4449
expected 14 Oct · 11 days stuck
Brightsea, 4441
31,000 · 8 days
Fenwick, 4438
12,400 · 3 days
What matters here
- An order tracker is four parts: one record, a state model including the messy states, exception surfacing, and a three-way reconciliation.
- Model the states that actually happen. Partially shipped, backordered, amended and returned are not edge cases, they are Tuesday.
- An order that has not moved is the thing to surface. Sorting by date received hides the one stuck for eleven days.
- Reconcile ordered against shipped against invoiced. Where those three disagree is where the money goes missing.
- Amendments after confirmation need their own history, or nobody can explain why the invoice does not match the order.
- The tracker reads from and writes to systems of record, so managed credentials belong in the build rather than after it.
Who this is for
You run finance operations, order operations or customer operations. Orders pass through several systems and somebody reconciles them by hand. What you want is one view of where every order is and an alert on the ones that have stopped.
How it works in practice
What happens to an order between somebody placing it and the money arriving.
- 1
One record is created and keeps its references
Every other system's identifier lives on it, rather than a second record being created per system.
- 2
It moves through states that include the mess
Partially shipped, backordered and amended are columns, not notes, because a state with no home ends up in somebody's spreadsheet.
- 3
Amendments keep their history
What changed, who approved it and why, with the previous version kept, because that is where an invoice mismatch is always explained.
- 4
Anything that stops is surfaced
Sorted by days stuck rather than date placed, and routed to whoever resolves that kind of problem.
- 5
Ordered, shipped and invoiced are compared per line
Because a short shipment inside an otherwise correct order nets out at the order level and vanishes.
- 6
Unbilled value is reported as a number
Shipped and not invoiced is revenue you have earned and not asked for.
What an order tracker is made of
An order tracker is not a status column. It is four parts, and the second one decides whether people use it or keep a private spreadsheet.
One order record
Customer, lines with quantity and price, dates promised and actual, payment terms, and references into every system the order touches. One record for its whole life, not one per system.
A state model with the messy states
Placed, confirmed, partially shipped, backordered, amended, shipped, invoiced, paid, returned, canceled. If a real state has no home, it ends up in somebody's notes.
Exception surfacing
Orders that have not moved, are past their promised date, are partially fulfilled with no plan for the rest, or are shipped and not invoiced. The queue is the exceptions, not the orders.
A three-way reconciliation
Ordered against shipped against invoiced, per line. Where they disagree is where revenue quietly leaks, and nobody finds it by reading three separate reports.
The prompts
Paste these into Claude Code, Codex or Cursor in order. Each one leaves you with something that runs, so you can stop after any step.
These prompts start from a Helix project, which is what handles sign-in, credentials and hosting. Start with Helix.
One record, and the states that actually happen
Modeling the mess rather than the happy path.
Create a Helix app: an order management tracker.
One order record that lives for the whole life of the order: customer, order reference, order date, promised date, payment terms, currency, and lines with product, quantity, unit price and line total. Keep the references into every other system on the same record rather than creating a second record per system.
Now the state model, and be generous with it. Placed, confirmed, partially shipped, backordered, amended, shipped, invoiced, paid, returned, canceled. Let me edit that list.
Model the messy ones properly. Partial shipment is a state, not a note. Backordered is a state, with the expected date on it. Amended after confirmation is a state, with a history of what changed.
If a state that really happens has nowhere to live, somebody keeps a private spreadsheet for it, and that spreadsheet becomes the real system within a month.
Where has it stopped
The queue is exceptions, not orders.
Build the working view, and put exceptions in it rather than every order.
Surface: orders that have not changed state for longer than a threshold I set, orders past their promised date, orders partially shipped with no expected date for the remainder, orders shipped but not invoiced, and invoices past due.
Sort by how long the order has been stuck, not by when it was placed. Those are different, and only the first one tells you where to look.
Each exception routes to whoever can resolve that type, and shows the order, its history, and the specific thing that is wrong, on one screen.
Give me a per-customer view too, showing every order and its state, which is what you need open when they ring.
Amendments, with a history
Because the invoice not matching the order is always explained by something.
Handle amendments properly.
When an order changes after confirmation, record what changed, who approved it, when, and why, and keep the previous version. Quantity changes, price changes, date changes, line additions and removals.
Show the amendment history on the order. When an invoice does not match the original order, the answer is nearly always in that history, and without it somebody spends an afternoon in three systems finding out.
Handle returns and credits as their own records linked to the order and the line, rather than as a negative amendment, so the original order stays intact and the return is visible as a return.
Reconcile ordered, shipped and invoiced
The report where revenue leaks show up.
Add the reconciliation, and do it per line rather than per order.
For each line: quantity ordered, quantity shipped, quantity invoiced, and the value of each. Flag any line where those three disagree, with the difference shown.
Group the mismatches by cause where you can: short shipped and not credited, shipped and never invoiced, invoiced above what shipped, returned and not credited. Those are different problems with different owners.
Then report: value shipped and not invoiced, which is revenue sitting unbilled; average days from placed to shipped and shipped to invoiced, reported separately because they fail for different reasons; and orders by state over time, so a growing backordered pile is visible before somebody complains.
Connect it to real systems
The step that turns a working prototype into something with your data in it.
Now connect it to the systems we actually run, so it works on real data rather than the rows you seeded.
Anything in angle brackets is a placeholder. Swap it for whatever we use instead, and have the app name the connection it wants rather than assume a vendor, so changing my mind later is a config change and not a rewrite.
<NetSuite>. Read orders and invoices, and write back the reconciliation result. Usually the system of record for the order itself.
<Salesforce>. Read the opportunity the order came from, and write the order state back so the account team can see it.
<Stripe>. Read payment status so paid is a fact rather than an assumption.
<Okta>. Read the team attribute, so the app can keep customer pricing and terms to the people who negotiate them.
<Slack>. Tell an owner when an order has stopped moving, with the specific reason.
<Zendesk>. Show the customer's open tickets on the order, since a stalled order and a support ticket are usually the same story.
<Snowflake>. Land the full order lifecycle with its timestamps, which is the only way to see where in the process the time actually goes.
<Coupa>. Where an order is fulfilled by a supplier, read the purchase side so the two halves reconcile.
Only write where I have said to write. Everything else is read only.
Ship it
The last step of every build: a URL, and the right people on it.
Deploy my app.
What it connects to
An order touches more systems than almost any other app in this library, which is exactly why it is worth having one record across them.
-
NetSuite Read orders and invoices, and write back the reconciliation result. Usually the system of record for the order itself. Reads and writes -
Salesforce Read the opportunity the order came from, and write the order state back so the account team can see it. Reads and writes
-
Stripe Read payment status so paid is a fact rather than an assumption. Reads
-
Okta Read the team attribute, so the app can keep customer pricing and terms to the people who negotiate them. Reads -
Slack Tell an owner when an order has stopped moving, with the specific reason. Writes
-
Zendesk Show the customer's open tickets on the order, since a stalled order and a support ticket are usually the same story. Reads -
Snowflake Land the full order lifecycle with its timestamps, which is the only way to see where in the process the time actually goes. Writes -
Coupa Where an order is fulfilled by a supplier, read the purchase side so the two halves reconcile. Reads
Named systems are the ones most teams actually run, not a list of the only ones that work. Swap in whatever you use.
Running it for real
The build gets you a working tracker. It reads and writes across finance and fulfillment systems and its reconciliation feeds revenue reporting, so it needs to be run properly.
- 1
Get it to a URL people can open
One command takes the app from your assistant to a live address, so the people who need it get a link rather than instructions for running it locally.
- 2
Put your identity provider in front of it
Order records carry customer pricing and terms, which are commercially sensitive. SSO means people sign in with their existing account, and access is scoped to those who need to see them.
- 3
Connect the system of record with managed credentials
Reading orders, shipments and invoices from three different systems needs real access to each. Granting it to the app rather than pasting keys into it means credentials can be rotated or revoked without a redeploy.
- 4
Put a name on it
Every app carries a named owner and an entry IT can see, so the tool does not become nobody's problem when the person who built it changes role.
- 5
Know what it costs to run
Per-app spend visibility, so an internal tool cannot quietly become a line item nobody can explain.
Do this as a workflow instead
An app is only as good as the data in it. These build the integrations and automations that keep this one current, on the Tray platform. Same kind of guide, same kind of prompts.