Stock Ledger Variance report
Each Stock Ledger Entry stores a running balance: the quantity, value, and valuation rate after the entry. Backdated entries, failed reposts, or data mismatches can leave these running balances wrong. The Stock Ledger Variance report recalculates them and shows the entries where the stored and the calculated numbers differ.
Use the report:
- After you fix a reposting problem.
- When negative stock errors appear and you expect stock to be there.
- After you import or create backdated stock transactions.
- During a stock audit or a stock count.
Filters
| Filter | Description |
|---|---|
| Company | The company. |
| Item, Warehouse | Check only this item or warehouse. |
| Difference In | The kind of difference to show: Quantity (A - B) for a wrong balance quantity, Value (G - D) for a wrong balance value, or Valuation (I - K) for a wrong valuation rate. |
| Include Disabled | Also check disabled items. |
Main columns
Each check comes as a pair of numbers and their difference.
| Column | Description |
|---|---|
| Stock Ledger Entry, Posting Date, Posting Time, Item, Warehouse, Voucher Type, Voucher No | The entry and its document. |
| (A) Qty After Transaction, (B) Expected Qty After Transaction, A - B | The stored and the calculated balance quantity. |
| (D) Balance Stock Value, (G) Sum of Change in Stock Value, G - D | The stored balance value, and the sum of all value changes up to this entry. |
| (I) Valuation Rate, (K) Valuation = Value (D) ÷ Qty (A), I - K | The stored valuation rate, and the rate that the stored value and quantity imply. |
The report also shows the FIFO queue columns, used to check FIFO valuation.
Fix the entries
- Select the rows that show a difference.
- Select Create Reposting Entries. ERPNext creates a Repost Item Valuation for each selected row.
- When the reposts are complete, run the report again to check that the differences are gone.
TIP
Reposting many entries takes time and adds load. Run it outside business hours, and check the stock balances when it finishes.