Skip to main content

Order types — configuration

Settings → Order types.

An order type is the single most consequential piece of configuration in the sales module: it decides which physical steps an order takes, when its lines stop being editable, when the customer pays, and when they are invoiced. None of that is a code branch — all of it is a row on this screen (AGENTS.md §2).

What ships​

Five starter types are created the first time an entity reads them.

CodeStepsLines lockMay changePaidInvoiced
STANDARDpick, pack, shipconfirmationanythingon the account termsat despatch
COUNTERpick, packpackinganythingat the counterat packing
ECOMpick, pack, shipconfirmationreduce onlybefore releaseat confirmation
WILLCALLpick, packpickingreduce onlyat the counterat packing
CASHCARRYhand overconfirmationanythingat the counterat confirmation, and posted

A company that already had order types before CASHCARRY shipped does not get it automatically: starter types are only created when there are none. Add it on this screen with the row above: Hand over at settle as its only step, invoiced at confirmation, and Post the invoice as it is raised on.

Exactly one type is the default. New orders that name no type take it.

The fields​

Physical steps. Which of pick, pack and ship this order goes through. This is not decoration: a type with no pack step renders no packing screens at all on the order's fulfilment page — not disabled ones, which would be a promise the configuration has already refused.

Hand over at settle is a step of its own, for cash and carry: the customer is at the desk with the goods. Confirming a sale of this type is the delivery. The stock leaves the shelves that hold it, a shipment marked Handed over at the counter records it, and the order closes, with nothing for the warehouse to pick, pack or ship and nothing in the fulfilment queue.

  • It is chosen on its own. Saved beside pick, pack or ship it is refused, because there is no later moment for those to happen in.
  • Whoever may confirm the sale may hand it over. Sales can confirm and cannot ship; on this type confirming is the hand-over, so the one permission is the one asked for. The history shows who settled the sale.
  • A sale that cannot be handed over is not confirmed. Not enough stock at a site that may not go negative, a licence that lapsed, or an account that pays first and has not: the sale stays a draft and says why.
  • Nothing is reserved for a sale of this type, whatever the type's reservation setting says: the goods leave in the same moment, so a hold on them would be made and released before anybody could see it.
  • A sale of services alone has nothing to hand over and is billed as at confirmation is below.

Lines lock at. The moment after which the order's lines stop being editable. Later is more flexible and more dangerous: a line added after the warehouse has been sent to fetch the order is a line nobody fetched.

What may change. Anything lets somebody add and remove lines. Reduce only lets them lower a quantity and nothing else — the right answer for an order a customer placed themselves. Nothing locks it.

This is enforced on the server. The screen hides what the type forbids, and the service refuses it whatever a screen offers. The importer, the CLI and the AI assistant never pass through a screen (AGENTS.md §3.4).

Lines may be added at the counter. A counter customer standing at the bench who wants one more thing. Off for anything that ships.

Paid. When money is expected: not collected here, on the account terms, before the order is released to the warehouse, or at the counter.

Payment is required before release. Hard gate rather than a warning.

Invoiced at. Which event raises the invoice. At despatch is the ordinary answer for goods going onto a truck; at packing is right where the customer walks out with them. At confirmation bills the order rather than its deliveries: confirming it raises a draft invoice for everything ordered, with its charges, at the order's prices. Use it for services, prepaid web orders and anything you bill before it ships. A shipment that goes out later is covered by that invoice and is never billed again. If the account must pay before release and has not, or invoicing is switched off, the order is still confirmed with no invoice, and somebody bills it later with Bill the order. By hand or billing cycle raises nothing: a person or the customer's billing cycle does.

On a type that hands over at settle, at confirmation raises the draft invoice from the hand-over itself, so its lines are what left and its cost of goods is the stock that went. At despatch and at packing do the same there; by hand still raises nothing.

Post the invoice as it is raised. Off, the invoice a type raises is a draft: somebody with invoice.post checks it and posts it. On, it is posted the moment it is raised, whichever event raised it. Use it where nobody is going to check: cash and carry, where the customer leaves with the invoice and pays against it.

  • It is posted through the same step a person's Post runs, so the period must be open and your approval rules are read. Where a rule asks for a signature, the invoice waits in the approvals queue as it would have.
  • A posting that is refused never undoes the sale. The invoice stays a draft for somebody to post, and the goods that left have still left.
  • The person settling the sale does not need invoice.post. The order type posts it, and the invoice's history says so.
  • It is on for CASHCARRY, COUNTER and WILLCALL — the types paid at the bench, where the cashier takes the money against the invoice as the goods are handed over, and only a posted invoice can be paid — and off on the rest. Companies that already had COUNTER and WILLCALL as they were set up have it switched on by the upgrade, unless the type is no longer paid at the bench. Switching it either way changes only invoices raised afterwards.

Which type to create​

Create a type when a flow differs, not when a customer does. If you find yourself creating ACME-STANDARD, the thing that varies is a setting or a rule, and a type per customer is the configuration gap AGENTS.md §1 is about.

Permissions​

See the typesorder_type.read — Manager, Sales, Warehouse, Accounting
Change themorder_type.manage — Manager

Somebody without order_type.manage sees the screen and no edit control, because which flows this company runs is not a secret from the people working them.

What reads them​

  • Order entry offers the list and defaults to the default.
  • The order record shows the type in the header, and its Fulfilment section shows the steps this type requires.
  • The fulfilment route renders one tab pair per step.
  • The cashier bench reads allow_add_at_bench and payment_timing.
  • Confirmation reads credit_check_at and reserve_at.