Recognize revenue over time
Use deferred revenue when you invoice a customer before you deliver a service, for example a one-year support contract. ERPNext posts the invoice amount to a deferred revenue account (a liability), then moves a share to income in each period of the service.
Example: a customer pays 1,200 for a one-year warranty, without tax.
| Event | Debit | Credit |
|---|---|---|
| Submit the Sales Invoice | Debtors 1,200 | Deferred Revenue 1,200 |
| Each month | Deferred Revenue | Service Income |
| Customer pays | Bank 1,200 | Debtors 1,200 |
The payment clears the receivable. It does not change when the income is recognized.
Learn how it works in About deferred revenue and expense.
Prerequisites
- A deferred revenue account (a liability) and the final income account exist in the chart of accounts. Do not use an income account as the deferred account.
- The service Item exists.
- The Deferred Accounting Settings in Accounts Settings are set.
Set up the Item
- Open the Item, and go to the Accounting tab.
- Select Enable Deferred Revenue.
- Optional: enter No of Months (Revenue), the default service length.
- Optional: in Item Defaults, set the Deferred Revenue Account for the company. Otherwise ERPNext uses the company's Default Deferred Revenue Account.
- Save.
Create the invoice
- Create a Sales Invoice and add the Item.
- Open the Item row. In the Deferred Revenue section, check:
- Enable Deferred Revenue;
- Deferred Revenue Account;
- Service Start Date and Service End Date.
- Check the Income Account of the row. It receives the recognized income.
- Submit. ERPNext credits the deferred revenue account instead of the income account.
Each row has its own service dates. One invoice can have rows with different periods, and rows without deferral.
Recognize the revenue
If Automatically process deferred Accounting entry is on, a monthly job posts the income for the previous month. Otherwise, run Process Deferred Accounting with Type Income.
Check the result
- Run the Deferred Revenue and Expense report. Check the invoiced, recognized, and pending amounts.
- Open the General Ledger for the deferred revenue account. Each period reduces it, and increases the income account by the same amount.
Stop the service early
If the service ends before the end date, set the Service Stop Date on the invoice row. ERPNext recognizes income up to that date. Check the report after the next run.
If the invoice itself is wrong, cancel and amend it. Do not delete recognition entries.
Troubleshooting
| Problem | What to check |
|---|---|
| The full amount went to income | Enable Deferred Revenue, the deferred account, and the service dates on the row |
| No monthly entry appears | Automatic processing, the background jobs, the date range, and draft Journal Entries |
| Monthly amounts differ | Book Deferred entries based on is Days. This is expected. |
| A balance is left after the service ends | The last processing date, the stop date, and draft Journal Entries |