Turn on weekly auto repost
Stock values can become incorrect when many transactions for the same item and warehouse arrive close together, or when you enter backdated transactions. Then the stock value in your reports is wrong, or it does not match the inventory account in the general ledger.
Weekly auto repost finds these errors in the current financial year and reposts the affected items for you. Without it, you must find the errors in reports and create the reposts yourself.
When to use weekly auto repost
Turn it on if:
- you enter many stock transactions, especially for the same items and warehouses,
- you often enter backdated or corrective stock transactions, or
- you had to fix differences from the Stock Ledger Variance or Stock and Account Value Comparison reports by hand.
If you have few stock transactions and rarely see valuation errors, you may not need it. When nothing is wrong, the weekly run changes nothing.
Turn on weekly auto repost
- Search for Stock Reposting Settings in the search bar and open it.
- In the Auto Reposting of Incorrect Valuation section, select Auto Repost Incorrect Valuation Entries (Weekly).
- Save the settings.
The setting is off by default. Once on, it runs once a week in the background. To turn it off, clear the checkbox and save.
What the weekly run checks
For each company, the weekly run reads two reports:
| Report | What it finds | What ERPNext does |
|---|---|---|
| Stock Ledger Variance | Item and warehouse pairs whose stock ledger values are inconsistent | Creates an item and warehouse repost |
| Stock and Account Value Comparison | Vouchers whose stock value differs from the value in the inventory account | Reposts the voucher. Runs only for companies with perpetual inventory. |
The weekly run acts only on errors in the current financial year. It leaves older periods alone, because they are usually closed and audited. Correct a previous year yourself with Repost Item Valuation.
Review the reposts
The weekly run creates Repost Item Valuation documents, which run in the background. To see them, open the Repost Item Valuation list.
The weekly run does not create a second repost for an item and warehouse that already has a queued or running repost.
Fix a warehouse linked to a wrong account
Some differences come from setup, not from calculation. A warehouse must link to an account with the Account Type "Stock". If the account has another type, reposting can never make the values match.
In that case, ERPNext does not repost the voucher. It emails users with the System Manager role, with the subject "Incorrect Stock Asset Account in" and the company name. The email lists each voucher, warehouse, and account.
To fix it:
- Open the Warehouse named in the email.
- Check the Account linked to the warehouse.
- Set the Account Type of that account to "Stock", or link the warehouse to a correct stock account.
The next weekly run, or a manual repost, then corrects the values. Until you fix the account, the email comes again each week.
Limitations
- Journal Entries are never reposted. A difference caused by a Journal Entry to an inventory account stays. Correct it yourself.
- Current financial year only. The weekly run skips older periods.
- Weekly, not instant. For an urgent correction, create a Repost Item Valuation document yourself.
- Long runs on large sites. The weekly run checks every item and warehouse, so it can take a while. It runs as a background job and does not slow down daily work.