How stock posts
Which documents move stock, which way, at what cost, and the journal entry each one makes alongside its stock movements.
Only an item set to Goods with Follow its stock ticked moves stock, and only on a document that posts. Services, and goods you do not follow, post as any other line does and never write a stock movement.
When a document posts, its journal entry and its stock movements are written in the same step. If either is refused, neither is written. That is what keeps the Inventory account and the value of the stock in agreement.
Which documents move stock
| Document | Goods | Cost the goods move at | Entry for the stock |
|---|---|---|---|
| Purchase invoice | In | What you paid, plus any additional costs on the invoice spread over the goods | The tracked lines debit Inventory instead of their expense account |
| Purchase credit note | Out | What the books hold them at | The refund credits Inventory; any difference between the refund and the cost is put back on Inventory against Cost of Goods Sold |
| Sales invoice | Out | What the books hold them at | Debit Cost of Goods Sold, credit Inventory |
| Sales credit note | In | What they cost when they went out on the invoice being credited; with no invoice linked, what the rest of that stock is held at | Debit Inventory, credit Cost of Goods Sold |
| Stock adjustment | Either way, line by line | In: the unit cost you enter, or what the rest of the stock is held at. Out: what the books hold them at | Inventory against Stock Adjustments |
| Stock transfer | Out of one location, into another | What the books hold them at, on both sides | None |
| Assembly order | Components out, finished item in | Components at what they are held at; the item at that plus the work | Inventory against each work centre's absorption account, for the work only |
Quotations, orders, return orders and requisitions do not post, so they move no stock.
What "what the books hold them at" means
It depends on the costing method chosen in Inventory settings:
- Weighted average keeps one average cost per item per location. Goods coming in change the average; goods going out leave at it.
- First in, first out keeps a layer for each receipt and uses the oldest first, so what goes out costs what that particular stock cost.
Quantities are kept to four decimal places and unit costs to six. Only the amount that reaches the ledger is rounded to two decimals.
When stock runs out
If a document would take out more than the location holds:
- With Allow stock to go below zero off (the default), the document is refused until the goods are received.
- With it on, the shortfall is costed at the last price the item was known to be worth (or its Purchase price), and the movement is marked Estimated. These lines appear on the stock on hand report and in the Below zero figure on the inventory dashboard.
A stock transfer is always refused when the goods are not there: moving stock you do not have is a counting error, not a sale.
Reversing a document that moved stock
Reversing a posted document puts its stock back exactly as it moved, at the same quantities and costs. Goods that came in can only go back out if they are still there. Under First in, first out that means the very layer the receipt opened; under Weighted average, enough on hand at the location (checked only while stock is not allowed below zero). If some have been sold or moved since, the reversal is refused and you raise a credit note or a stock adjustment for what is left instead.
Example
You buy 100 units at AED 10.00 and later 100 units at AED 12.00, both into the same location, under Weighted average. The average is AED 11.00. Selling 50 units posts:
| Account | Debit | Credit |
|---|---|---|
| Cost of Goods Sold | 550.00 | |
| Inventory | 550.00 |
Under First in, first out the same sale costs AED 500.00: the 50 units come from the first layer bought at AED 10.00.
Related articles
- Manage stock from receipt to countThe life of stock end to end - set up, receive, move, sell, count, adjust and reorder - and what each step posts.
- Stock valuationSee what the stock is worth item by item, beside the balance of the Inventory account, and find out why when the two do not agree.
- Inventory settingsChoose the costing method, the default location, and whether stock may go below zero.
- How posting worksWhy every figure in the app comes from a balanced journal entry, why posted entries cannot be edited, and what is checked before anything reaches the ledger.
