A stock batch is a restock: what you paid per unit, how many you bought, and when they arrived. Record it once and orders placed from that day on cost themselves — you stop entering a price per order and start entering one per restock.
Adding one
- Open Products and press the Stock cell on the product.
- Fill in Price per unit, Units bought and Received on.
- Press Add stock.
The toast tells you what it did: "20 units added — 7 orders costed automatically".
The button on the Stock cell changes with the level: Add stock when there is none, Low · 3 left in amber, or 12 in stock.
How orders draw from stock
Oldest purchase first — first in, first out.
- Orders are served oldest first, so your stock is consumed in the order the sales actually happened.
- A batch only serves orders placed on or after it arrived. Stock you record today does not reach back and price last month's orders.
- An order line that spans two batches is split across both, at each batch's own price. That is precisely the moment your cost changed, and precisely when a single blended figure would be wrong.
- Cancelled orders never draw stock. Those units stay on the shelf, because they were never shipped.
- A price you typed by hand wins over the batch price — but the units still leave stock, because they physically went out of the door.
Why a batch does not price older orders. Otherwise stock you record today would silently price orders that have been waiting for weeks, and moving your start date earlier would re-price orders that were already costed. For a backlog of older orders, use Price past orders instead.
Allocation is recalculated, not adjusted
Every time your stock changes, the whole allocation is worked out again from scratch rather than nudged. That means a late-arriving old order takes the place in the queue it should always have had, and removing a batch re-costs whatever drew from it rather than leaving orphans. The toast on a delete says so: "Batch removed — affected orders were re-costed".
One consequence worth knowing: stock-drawn prices are redrawn each time, so they do not keep a history of their earlier values. Prices you entered or imported are never touched by this.
Running out
When a product's recorded stock is exhausted but orders keep arriving, Baiord raises "{product} has sold out of recorded stock" and tells you how many orders and units are waiting. Add the new batch and they cost themselves; or price them individually.
This only happens for a product that had stock recorded. A product that never had any is just an ordinary order awaiting a buying price, and nagging about it would be noise.
Stock history
The dialog lists every batch — "20 × 4.50", "7 left" or all sold, the date it arrived, the supplier and supplier order number — with a bin icon to remove one. A resaleable return lands here too, as a one-unit batch.