Lock document types with an accounting period
An Accounting Period blocks selected document types in a finished date range. After you approve the statements for April to June, for example, a late invoice or a cancellation cannot change them, while July work continues.
It is a selective lock: you choose the document types. To block all accounting entries up to a date, see Freeze accounting entries. To move profit or loss to equity, see Create a Period Closing Voucher.
Prerequisites
- The period has ended. ERPNext does not accept an End Date after today.
- Reconciliations and adjustments for the period are done.
Create an accounting period
- Open the Accounting Period list and select Add Accounting Period.
- Enter the Period Name, Start Date, End Date, and Company.
- Optional: select an Exempted Role. Users with this role can still post in the period.
- Review Closed Documents. If you leave the table empty, ERPNext fills it on save with the standard document types, all with Closed selected: Sales Invoice, Purchase Invoice, Journal Entry, Payment Entry, Stock Entry, Bank Clearance, Dunning, Invoice Discounting, Period Closing Voucher, Process Deferred Accounting, Asset, Asset Capitalization, and more.
- Clear Closed on a row, or delete the row, for document types that must stay open.
- Save.
Accounting periods of the same company cannot overlap.
What users see
When a user saves, submits, or cancels a document of a closed type dated in the period, ERPNext stops with: "You cannot create a ... within the closed Accounting Period ...". Document types that are not listed, or not Closed, stay open.
To reopen the period, select Disabled on the accounting period, or clear Closed on a row.
Troubleshooting
Users can still post one document type
Check that the type is in Closed Documents with Closed selected, that the date is in the period, that the period is not Disabled, and that the user does not have the Exempted Role.
Accounting Period cannot be created for a future date
Wait until the period has ended, or set the End Date to today or earlier.
Accounting Period overlaps with ...
Another period of the same company covers some of the dates. Change the dates.