About submit, cancel, and amend ​

Most transactions in ERPNext, such as Sales Invoices, Delivery Notes, and Journal Entries, are submittable documents. A submittable document is not final when you save it. It becomes final when you submit it. This page explains the three states and how to correct a final document.

Why documents are submitted ​

Accounting and stock records must not change after they are posted. If anyone could edit a posted invoice, the ledger and the stock balance would no longer match the documents. ERPNext separates two steps:

  • Save stores your work. You can still change the document.
  • Submit makes the document final. ERPNext then posts its effects, for example general ledger entries and stock ledger entries.

Masters, such as Customer and Item, are not submittable. You save them and can change them later.

The three states ​

StateWhat it meansWhat you can do
DraftSaved, not final. The document has no effect on the ledgers.Edit, save, submit, or delete it.
SubmittedFinal. The ledger entries and stock movements exist.Read, print, email, and create the next documents from it. Cancel it to reverse it.
CancelledReversed. ERPNext reverses the ledger entries and stock movements of the document.Amend it to make a corrected copy, or delete it.

Many documents also show a business status, such as Unpaid, Overdue, or To Deliver and Bill. The business status depends on the state and on the linked documents.

Submit a document ​

  1. Save the document.
  2. Select Submit.
  3. Confirm the message Permanently Submit with Yes.

ERPNext checks the document again before it posts the entries. If a check fails, the document stays in Draft and ERPNext shows the reason.

Cancel and amend a document ​

To correct a submitted document:

  1. Open the document and select Cancel. Confirm the message Permanently Cancel.
  2. Select Amend. ERPNext creates a new draft copy of the document.
  3. Make the changes and save.
  4. Submit the amended document.

The amended document gets the name of the original with a number added. For example, the amendment of SINV-0001 is SINV-0001-1. Its Amended From field links to the cancelled original, so the history stays complete.

WARNING

Cancel reverses the ledger and stock entries of the document. Check the reports for the period after you cancel a document in a closed or reported period.

Linked documents ​

You cannot cancel a document while a submitted document still depends on it. For example, you cannot cancel a Sales Order while a submitted Delivery Note or Sales Invoice is linked to it.

When you cancel such a document, ERPNext lists the linked submitted documents in the Cancel All Documents dialog. If you have permission to cancel all of them, select Cancel All. Otherwise, cancel the linked documents first, starting from the last one in the chain.

Who can submit, cancel, and amend ​

Submit, cancel, and amend are separate permissions. A role can create invoices without the right to submit them, for example so that a manager reviews every invoice first. See Permission types.