How stock and warehouses work
What stock tracking does for goods, the stock settings, what a warehouse is, what On Hand, Reserved, and Available mean, what moves stock, and what the inventory ledger does.
On this page
What stock tracking is
Stock tracking keeps a count of each goods item in each warehouse. The count goes down when you post an invoice or a receipt that sells the item, and goes up when goods come back on a credit note or a return, when you record a restock, or when a purchase receipt is posted in Commerce.
Only goods can be tracked. A service has nothing to stock. Stock is counted in units, so a count is a quantity, not a value.
By default, stock movements do not post to your books. The sale posts to the item's sales account and a bill posts to its purchase account, as they do without stock tracking. If you turn on the inventory ledger, the value of stock is posted as well. See "Track the value of stock in the ledger" below.
Stock is shared with Commerce. The same count is used when the item is sold in a store or ordered on a purchase order, and a stock movement made in either app shows in both.
Turn stock tracking on for the workspace
In the sidebar, choose Items & Services.
Above the list, select the settings icon. The Items & Services service settings open.
Tick Use Inventory Stock and select Save.
Stock tracking needs a plan that includes it. On a plan without it, item pages show a Stock Information card that reads "Stock tracking is included on higher plans. Upgrade your plan to track stock for this item." and documents show no stock figures. Documents do not move or check stock on such a plan, even while Use Inventory Stock is ticked.
With Use Inventory Stock off, nothing moves stock: posting a document changes no count, item pages show no stock card, and the Adjust and Transfer actions are unavailable.
Decide who may change stock by hand
The second setting, Only Documents Adjust Stock, decides whether stock may be changed by hand in Bookkeeping.
Ticked, stock changes only when a document is posted. The item page shows the counts, but Adjust Stock and Transfer are not offered, and a request to change stock by hand is refused with "Stock can only be changed by posting invoices, receipts, returns, and purchase receipts".
Unticked, Adjust Stock and Transfer appear on the stock card for people whose role allows it.
A workspace that has never changed this setting is treated as having it ticked.
Stop sales when stock is short
The third setting, Stop Sales When Out of Stock, is ticked by default. While it is ticked, posting an invoice or a receipt is refused when a warehouse does not hold enough of an item. A product that allows backorders in Commerce is not refused.
Untick it to allow sales that take stock below zero. The lines still show how many units are available, but the document posts and the count goes below zero. A receipt that records a sale already paid offline or at checkout is not refused for short stock either way.
What a warehouse is
A warehouse is a place that holds stock. Every workspace starts with one, named Default, created with the workspace. It is the default warehouse until you choose another, so a document that names no warehouse takes stock from it.
A warehouse can be active or inactive. Only active warehouses are offered on documents and in the Adjust Stock and Transfer Stock panels. The stock card on an item page lists every warehouse that has ever held the item, with the count in each.
Workspaces with one warehouse see no warehouse choices. The Warehouse field on documents, and the Warehouse field in the Adjust Stock panel, appear only when the workspace has more than one active warehouse.
Add and rename warehouses
While Use Inventory Stock is ticked and saved, the Items & Services settings show a Warehouses card below the settings. It lists each warehouse by name, marks the default one Default, and shows whether each is Active or Inactive.
To add a warehouse:
Select Add warehouse. The Add warehouse form opens.
Enter a Name of up to 50 characters. Each warehouse needs its own name.
Select Add warehouse. You see "Warehouse added" and the warehouse joins the list as Active.
Each warehouse you add counts towards your plan's warehouse limit, which is shared by every workspace in the organisation.
To rename a warehouse, select Rename on its row, change the Name, and select Save. You see "Warehouse renamed". Stock, documents, and past movements stay with the warehouse under its new name.
Make a warehouse inactive or active
To stop using a warehouse, select Make inactive on its row. You are asked "Make warehouse inactive?". Select Make inactive to confirm, and you see "Warehouse made inactive".
An inactive warehouse is no longer offered on documents or in the Adjust Stock and Transfer Stock panels. Stock already in it stays there, and it still counts towards your plan's warehouse limit.
To bring it back, select Make active on its row. You see "Warehouse made active".
The default warehouse cannot be made inactive, because a document that names no warehouse takes stock from it. To retire it, set another warehouse as the default first.
Change the default warehouse
To change which warehouse is the default, select Set as default on the row of an active warehouse. You are asked "Change the default warehouse?". Select Set as default to confirm, and you see "Default warehouse changed". The Default badge moves to that row.
From then on, a document that names no warehouse takes stock from the new default. Stock already recorded stays where it is, and documents already posted are not changed, so voiding one still puts its units back into the warehouse they came from.
The warehouse that was the default stays active, and can now be made inactive.
Set as default is not offered on the default warehouse or on an inactive one. Make an inactive warehouse active first.
On Hand, Reserved, and Available
The stock card shows three figures for the item as a whole and the same three for each warehouse.
Figure | What it means |
|---|---|
On Hand | The units physically in the warehouse |
Reserved | Units set aside that cannot be sold |
Available | On Hand less Reserved, less any units in expired batches when the item tracks expiry dates in Commerce |
The totals at the top add up the warehouses. The Reserved figures appear only while some quantity is reserved. Otherwise the card shows On Hand and Available only.
What moves stock
Action | Effect on stock |
|---|---|
Post an invoice or a receipt | Takes each stock-tracked line out of the warehouse on the document |
Void an invoice or a receipt | Puts the units back into the warehouse they came from |
Amend an invoice or a receipt | Puts the units back, then the corrected document takes them out again when it is posted |
Post a credit note with items returned to stock, or return items on a receipt | Puts the returned units back |
Void such a credit note | Takes those units out again |
Post a bill | Nothing. Bills do not move stock |
Post a purchase receipt in Commerce | Adds the received units to the warehouse |
Adjust Stock | Adds or removes units in one warehouse |
Transfer | Moves units from one warehouse to another |
A receipt that records a payment on an invoice that is already posted moves nothing, because the invoice took the units out when it was posted.
Track the value of stock in the ledger
On the same page, the Inventory value in the ledger card lets you bring the value of your stock into your books. It is off until you select Turn on, which needs Use Inventory Stock ticked and saved first, and a role that can manage the workspace and modify items.
You confirm "Track inventory value in the ledger?". One opening entry brings Inventory Asset to your current stock value, against Opening Balance Offset, so this period's profit is not affected. You see "Inventory value is now tracked in the ledger". "This can't be turned off."
Your chart of accounts needs Inventory Asset, Cost of Sales, and Opening Balance Offset accounts first.
What the ledger posts
Once the ledger is on, stock is valued at average cost, which falls back to the item's cost price in your base currency.
Posting an invoice or a receipt also posts the cost of the goods sold, debiting Cost of Sales and crediting Inventory Asset.
Stock returned on a credit note goes back into Inventory Asset.
A bill for a stock item posts to Inventory Asset instead of the item's purchase account.
A purchase receipt in Commerce adds the received units at their cost.
Voiding a document reverses its entries.
Stock changes made by hand, write-offs, production, regrades, imports, and till over or short amounts post every hour. Select Post now on the card to post them straight away. You see "Nothing new to post" or a count of the entries posted.
Transfers between warehouses post nothing. The value of stock does not change.
The ledger works only while Use Inventory Stock is ticked and your plan includes stock tracking.
Permissions
Seeing the stock card needs the permission to view items.
Adjust Stock, Transfer, and the Adjust and Transfer links on each warehouse row need the permission to adjust stock and the permission to view warehouses.
Start tracking stock needs the permission to create product variants in Commerce.
Create purchase order in Commerce needs the permission to create purchase orders.
Seeing the Warehouses card needs the permission to view warehouses.
Add warehouse needs the permission to create warehouses.
Rename, Set as default, Make inactive, and Make active need the permission to modify warehouses.
Turning Use Inventory Stock, Only Documents Adjust Stock, and Stop Sales When Out of Stock on or off needs the right to manage the workspace.
Messages you might see about stock settings
"Inventory stock is not enabled for this workspace" means a stock change was requested while Use Inventory Stock is off. Turn it on, then try again.
"Stock can only be changed by posting invoices, receipts, returns, and purchase receipts" means Only Documents Adjust Stock is ticked. Untick it to change stock by hand.
"stock tracking must be turned on before inventory value can be tracked in the ledger" means Turn on was selected while Use Inventory Stock is off.
"inventory value is already tracked in the ledger for this workspace" means the ledger is already on.
"Use Inventory Stock is off. Turn it on to receive stock for" followed by an item name is the reply from Commerce when a purchase receipt for a stock-tracked item is posted while the setting is off.
Messages you might see about warehouses
"Name is required" means the Name field is empty.
"Another warehouse already has this name" and "A warehouse with this name already exists" mean the name is taken. Choose a different name.
"Warehouse limit reached for your current plan" means your plan allows no more warehouses. Inactive warehouses still count. Upgrade your plan to add more.
"Make the warehouse active before setting it as the default" means the warehouse was made inactive after the page loaded. Select Make active on its row first.