Warenkorb

Products and orders

How a product draws on the stock register, and what happens to stock as its orders move. This page is part of Inventory; for adding and counting the items themselves, see Stock items.

Made to order, or sold from stock

The Stock card of the product editor starts with how the product is sold:

ChoiceWhat it meansGood for
Made to order (the default)Built when an order comes in. Stock never limits how many can be ordered.Anything cut, configured or assembled to suit.
Sold from stockComes off a shelf. Customers cannot order more than is available.Finished goods you keep, spares, bought-in items.

To sell something from stock:

  1. On the Stock page, click New item, and enter what is on the shelf as Opening stock: BRACKET-A, opening stock 20.
  2. In the product's Stock card, choose Sold from stock and pick it under Stock item. Each one sold takes one.

Receiving, counting and reordering then work as they do for any other item, and the customer sees what the register says:

AvailableWhat the customer sees
As many as one order can take, or moreIn stock. The quantity goes up to the order's limit.
Fewer, say 3Only 3 left, and the quantity stops at 3.
NoneOut of stock in this configuration, with Add to cart withdrawn.

If each configuration has its own shelf - shirts by size - write the parts formula instead, and have it name the item: return [{ sku: 'SHIRT-' + gui.size, qty: 1 }];. A formula that takes several items sells as many as the scarcest one allows.

Maximum per order

Maximum per order, in the same card, limits how many of a product one order can take, however it is sold. It counts every configuration together: with a maximum of 10, five red and five blue fill it. Customers see Maximum 10 per order, the quantity stops there, and checkout refuses more.

Left empty, each cart line can hold up to 20, as a guard against typing mistakes. The maximum can also be higher than 20, for something sold by the hundred.

Connecting a product to stock

A product draws on stock through its parts formula, in the Stock card of the product editor. The formula says what one unit takes, as configured, and returns a list of SKUs and quantities. For a table with width and depth controls in millimetres:

var area = gui.width * gui.depth / 1000000;   // mm² to m²
return [
  { sku: 'OAK-25', qty: area },
  { sku: 'LEG', qty: 4 },
];

A product that uses no stock has no parts formula.

For a product made to order, When materials are short decides what a customer is told when the register cannot cover their configuration:

SettingWhat the customer sees
Take the order, quote a longer lead time (the default)They can buy it, and are told Materials on order: allow about 7 extra days - the slowest short item's restock days.
Say nothingNothing. Stock is still reserved and used behind the scenes.

What an order does to stock

Nothing here is done by hand: stock follows the order's fulfilment state.

🖱️ Strg/⌘ + Scrollen oder Zwei-Finger-Geste zum Zoomen · Ziehen zum Verschieben · Doppelklick zum Zurücksetzen

100%
An order's stock. Reserved when it is placed; used once work starts, or released if it is cancelled first.
When the order is...StockFor one table taking 1.62 m² of oak
PlacedReservedReserved +1.62, available -1.62. On hand does not change.
In manufacture, or any later stateUsedOn hand -1.62 and reserved -1.62.
Cancelled before manufactureReleasedReserved -1.62: available again.
Cancelled after manufacture startedNothingThe wood is cut. If it really goes back on the shelf, record it with Receive or Adjust.
On holdNothingStays reserved.

Each of these appears in the item's movements as Reserved, Used or Released, linked to the order. The order's own page has a Stock panel: what it reserved, where that stands, and a Not reserved list of anything that could not be - a SKU the register does not have, an archived item, a formula that failed.