Repost the accounting ledger
Repost Accounting Ledger rebuilds the ledger entries of submitted documents from their current data. Use it when a document is correct but its ledger entries are not, for example after you changed an account on a submitted document. It is an administration tool. It does not change the document itself.
If the document itself is wrong, cancel and amend it, or create a return, instead.
Prerequisites
- You have the System Manager role.
- The documents are submitted and belong to one company.
- Each document type is in Allowed DocTypes in Accounts Settings, on the Payments tab, in the Repost section.
- The documents are dated after the latest submitted Period Closing Voucher of the company.
- The documents do not use deferred revenue or deferred expense.
- You have a backup before a large repost on a production site.
INFO
Allowed DocTypes has a second effect. When you change an account on a submitted document of a listed type, ERPNext reposts its ledger automatically. Remove a type from the list to prevent this.
Repost documents
- Open the Repost Accounting Ledger list and select Add Repost Accounting Ledger.
- Select the Company.
- Leave Delete Cancelled Ledger Entries cleared. It deletes cancelled ledger rows before the rebuild, and is only for a diagnosed cleanup.
- In Vouchers, add a row for each document: the Voucher Type and the Voucher No. You can add up to 50 documents. Split larger batches.
- Save.
- Select Show Preview. Red rows are the current entries that ERPNext replaces. Green rows are the new entries. Check the accounts, amounts, and dimensions.
- If the preview is wrong, fix the source document first.
- Select Submit. ERPNext starts the repost in the background.
The Status shows Queued, In Progress, Completed, Partially Reposted, or Failed. Each row in Vouchers shows its own status. If a job stopped, select Start Reposting to run it again.
Check the result
For each document, select View > Ledger, or run the General Ledger with the voucher number. Check the accounts, dimensions, and totals, and run the affected report.
Troubleshooting
The document type is not available
Add it to Allowed DocTypes in Accounts Settings, if your organization allows reposting it.
Cannot Resubmit Ledger entries for vouchers in Closed fiscal year
A submitted Period Closing Voucher covers the document date. Reopen the period only through your approved process.
Documents have deferred revenue/expense enabled for them. Cannot repost.
The invoice uses deferred accounting. Reposting could conflict with its deferral schedule. Use the deferred accounting process instead.
Cannot repost more than 50 vouchers at once
Split the documents into several Repost Accounting Ledger documents.
The repost failed
Open the Error Log section and the row with the status Failed. Fix the cause, then select Start Reposting.