Fix stock value differences ​

The Stock Valuation Comparison report finds Stock Ledger Entries whose quantity, value, or valuation rate is wrong. From the same report, you fix them in one of two ways:

  • Repost: recalculate every entry from the first difference to today.
  • Adjustment Entry: correct the stock from a date you choose, and leave earlier entries as they are.

Prerequisites ​

  • You checked the first difference of a few items by hand, and the expected values are correct.
  • You took a backup, if you fix many items at once.
  • Your accountant agrees, if the fix changes a past financial year or books a large adjustment.

Choose a method ​

RepostAdjustment Entry
What changesEvery entry from the first difference to todayOnly stock from the adjustment date
Reports for past datesBecome correctStay as they were
Closed or filed periodsCan change, or the repost is blockedNot touched
SpeedSlow for long histories; runs in the backgroundFast; one document
New document in the ledgerNoYes, one Stock Reconciliation
AccountingThe original ledger entries are correctedThe difference goes to a difference account
Backdated entries afterwardsAllowedBlocked before the adjustment date
Negative stock, or serial or batch short of stockWorksNot supported
UndoHard; the old values are goneCancel the adjustment entry

Use Repost when:

  • The first difference is in the current financial year, or in a period that is not closed or filed.
  • You want every report, including old ones, to be correct.
  • You still need to post backdated entries for these items.
  • The adjustment entry says that the item cannot be adjusted.

Use Adjustment Entry when:

  • The first difference is in a past financial year that is closed, audited, or filed.
  • The repost is too slow, or a closed period blocks it.
  • You only need correct stock from now on.

A common approach is to combine them: repost the differences in the current financial year, and make one adjustment entry dated the first day of the current financial year for differences that start in closed years.

Select the rows to fix ​

Both methods are under Fix Differences at the top of the report.

  • If you select some rows, ERPNext fixes only those rows.
  • If you select no rows, ERPNext fixes every difference that the report shows.

For each item and warehouse, the fix starts from the earliest selected difference.

Fix with a repost ​

A repost creates one Repost Item Valuation for each item and warehouse, starting from the date of its first difference. It recalculates every Stock Ledger Entry from that date and corrects the stock values and their accounting entries.

  1. Select the rows, or none.
  2. Select Fix Differences > Repost. A preview shows:
    • Each item and warehouse to repost, and its start date.
    • Items and warehouses that already have a pending repost. ERPNext leaves them out.
    • A warning if the repost starts in a previous financial year.
  3. Select Yes. ERPNext shows which reposts it queued, and which it could not queue and why.
  4. Wait until each repost has the status Completed in the Repost Item Valuation list.
  5. Run the report again to check that the differences are gone.

WARNING

A repost changes past figures. If the first difference is in an older period, the closing stock, profit, and balance sheet of that period can change. A repost is blocked when an Accounting Period, a Period Closing Voucher, or frozen accounts close the period. Changing the value of an issue also changes the value of whatever used that stock, such as a manufactured item.

Fix with an adjustment entry ​

An adjustment entry is a Stock Reconciliation with the purpose Adjustment Entry. On the adjustment date, it takes out the stock of each item and warehouse at the wrong value in the ledger, and puts it back at the correct quantity and value. Serial numbers and batches come back at their own rates, and other stock layer by layer, so that FIFO and moving average stay correct.

  1. Select the rows, or none.
  2. Select Fix Differences > Adjustment Entry.
  3. In the dialog, set:
    • Adjustment Date and Adjustment Time: the moment from which the stock must be correct, for example the first day of the current financial year, or today.
    • Difference Account (optional): the account for the value difference. The default is the Stock Adjustment Account of the company.
  4. Select Make. A draft Stock Reconciliation opens.
  5. Check the rows: Current Qty and Current Amount are what the ledger holds now. Qty, Valuation Rate, and Amount are what it should hold. Difference Amount goes to the difference account.
  6. Submit the Stock Reconciliation.
  7. Run the report again. Differences before the adjustment date are now hidden. Select Show Differences Settled by Adjustment Entries to see them.

WARNING

Do not edit the rows of the adjustment entry. They must match what the stock should be. If you change them, ERPNext shows an error, and you must make the entry again from the report.

After you submit an adjustment entry, you cannot post or cancel a stock transaction dated before the adjustment for that item and warehouse, or for the same serial numbers or batches. To do so, cancel the adjustment entry first.

ERPNext leaves an item and warehouse out of the adjustment entry, with a reason, when:

  • Its stock quantity and value are already correct on that date.
  • Its stock should be negative on that date.
  • Some of its serial numbers or batches should be short of stock on that date.
  • Its first difference is on or after the adjustment date.
  • It has no stock transactions by that date.

Fix these with a repost.

Good practice ​

  • Fix in small groups, for example one item group or one warehouse at a time.
  • Run the report again after each fix.