Stock valuation and cost of goods sold
How moving weighted-average cost works, the stock valuation report, and why it always agrees with the inventory account.
Moving weighted-average cost
Each stock-tracked product has one average cost, for the company as a whole:
- Goods in (receipts, bills, returns) add their quantity and value; the average becomes total value ÷ total quantity.
- Goods out (sales, write-offs, transfers) leave at the current average cost.
Example: you hold 100 boxes worth 1,000.000 (average 10.000) and buy 50 at 13.000. You now hold 150 worth 1,650.000: average 11.000. Selling 30 records cost of goods sold of 330.000, leaving 120 worth 1,320.000.
Notes:
- Costs are worked out in the order documents are posted. Post receipts before the sales that use them.
- Selling or removing the last unit takes the remaining value exactly, so no rounding residue is left on empty stock.
- First-in, first-out (FIFO) costing is not offered.
Cost of goods sold
Cost of goods sold is recorded in the same journal as the sales invoice: Dr 5100 Cost of goods sold, Cr 1300 Inventory. The invoice's Stock panel shows the cost of each line. A credit note for returned goods reverses it at the cost the goods left at.
Landed costs
Customs duty, freight and similar charges can be added to the value of goods received with a landed cost.
Price differences
When a bill raised from a purchase order is priced differently from the goods receipt, the difference goes to 5300 Purchase price variance, not to stock. See Three-way match.
The valuation report
Inventory → Valuation shows each product's quantity, average cost and value at any date, for all warehouses or one. Print it, or download it as CSV (needs reports.export).
For all warehouses, the report says whether the total agrees with the inventory account at that date. It always should: every movement's value was posted to the inventory account on the same date. A difference means value was booked to the inventory account outside the stock ledger, for example before stock tracking started. In that case, post a stock count or adjustment to align the two.
For one warehouse, quantities are that warehouse's and values use the company-wide average cost.