Stock Reposting Settings ​

Stock Reposting Settings control when and how ERPNext reposts stock valuation. Reposting recalculates stock ledger entries and accounting entries after a backdated transaction. Learn more in Repost item valuation.

To open the settings, search for Stock Reposting Settings in the search bar.

Scheduling ​

FieldDefaultDescription
Limit timeslot for Stock RepostingOffRun reposting only between Start Time and End Time. Use it to keep reposting out of working hours and to avoid database deadlocks.
Start Time-The time when reposting can start. Shows when the timeslot is on.
End Time-The time when reposting stops. If the slot is shorter than 10 hours, ERPNext moves End Time to 10 hours after Start Time.
Limits don't apply on-A weekday on which reposting runs all day, for example your weekly holiday.
Use Item based repostingOnRepost by item and warehouse, not by transaction. ERPNext skips duplicate item and warehouse pairs, so reposting is faster.

Errors notification ​

FieldDefaultDescription
Notify Reposting Error to Role-The role whose users get an email when a repost fails. If empty, ERPNext emails users with the Stock Manager role.
Enable Parallel RepostingOffRepost several items at the same time with several background workers. Shows only when Use Item based reposting is on.
No of Parallel Reposting (Per Item)4The number of reposts that run in parallel. A higher number can repost faster, but loads the server more.
Enable Separate Reposting for GLOffFor item and warehouse reposts, recreate the accounting entries in separate reposts after the stock reposting. Shows only when Use Item based reposting is on.
Do not fetch incoming rate from Serial NoOffFor legacy serial numbers, calculate the incoming rate from the inward transaction, not from the Serial No. See Legacy serial numbers.

Auto reposting of incorrect valuation ​

FieldDefaultDescription
Auto Repost Incorrect Valuation Entries (Weekly)OffEach week, find incorrect stock valuation in the current financial year and repost it. See Turn on weekly auto repost.

Convert to Item Based Reposting ​

The Convert to Item Based Reposting button turns on Use Item based reposting. It also replaces the queued transaction-based reposts with item and warehouse reposts, and sets the old reposts to Skipped.

Reposting limits ​

Reposting can cover thousands of entries. Keep backdated entries within about one month. Older backdated entries can make reposting fail, because:

  • the timeslot can delay reposting, so vouchers stay inconsistent until it runs, and
  • each reposting job has a timeout of 1,500 seconds, which a large repost can exceed.

Legacy serial numbers ​

Serial numbers created before version 15, without a Serial and Batch Bundle, store one incoming rate on the Serial No. Reposting can pick the wrong rate when the same serial number comes in twice at different rates.

For example:

  1. Serial number ABC comes in at 14,000.
  2. ABC goes out at 14,000.
  3. ABC comes in again at 4,000. The Serial No now stores 4,000.
  4. ABC goes out at 4,000.

If you repost from step 2, ERPNext takes 4,000 from the Serial No, but the correct rate is 14,000. Select Do not fetch incoming rate from Serial No to take the rate from the last inward transaction instead.