Create recurring documents with Auto Repeat ​

Auto Repeat makes a new copy of a document on a schedule. Use it for documents that repeat with the same details, for example:

  • A monthly Sales Invoice for a subscription or a rental.
  • A monthly Journal Entry that moves a prepaid expense to the expense account.
  • A weekly Purchase Order for a regular supply.

You create the first document by hand. Auto Repeat creates the next ones.

Prerequisites ​

  • Allow Auto Repeat selected for the DocType. Open Customize Form, select the DocType, select Allow Auto Repeat, and select Update. Many sales and purchase documents have it already.
  • The first document, saved or submitted.

Set up Auto Repeat from the document ​

  1. Open the document that you want to repeat.
  2. Open the menu, and select Repeat. The option does not appear if the document is already on Auto Repeat.
  3. Enter the Frequency, the Start Date, and optionally the End Date.
  4. Select Save.

Set up Auto Repeat from the list ​

  1. Open the Auto Repeat list, and select New.
  2. In Reference Document Type, select the DocType, for example Sales Invoice.
  3. In Reference Document, select the document to repeat.
  4. Enter the Start Date. Optional: enter an End Date. Without an end date, ERPNext repeats the document until you disable the Auto Repeat.
  5. In Frequency, select Daily, Weekly, Fortnightly, Monthly, Quarterly, Half-yearly, or Yearly.
  6. Select Save.

The Next Schedule Date shows when ERPNext creates the next document. The form also shows the schedule of the coming documents.

Options ​

Submit the new documents ​

For a submittable document, select Submit on Creation. ERPNext submits each new document. Otherwise, it saves them as drafts.

Choose the day of the month ​

For a monthly, quarterly, half-yearly, or yearly frequency, ERPNext creates documents on the same day of the month as the Start Date. To change this:

  • Repeat on Day: enter a day of the month, for example 7.
  • Repeat on Last Day of the Month: select it to use the last day of each month. Monthly frequency only.

Choose the weekdays ​

For a weekly frequency, add the days in the Repeat on Days table, for example Monday and Thursday.

Email the new documents ​

  1. Select Notify by Email.
  2. In Recipients, enter the email addresses. Select Get Contacts to add the contacts of the document.
  3. Optional: select an email Template. It fills in the Subject and Message.
  4. Select the Print Format of the attachment.
  5. Select Preview Message to check the email.

WARNING

For a submittable document that you do not submit on creation, select Allow Print for Draft in Print Settings. Otherwise, the email goes out without the document.

See and stop the schedule ​

  • The sidebar of the reference document shows its Auto Repeat frequency. Select it to open the Auto Repeat.
  • The Status of the Auto Repeat is Active, Disabled, or Completed.
  • To stop, select Disabled. ERPNext stops creating documents and unlinks the Auto Repeat from the reference document.