ERPNext tutorials

Create a sales invoice and record payment in ERPNext

The short answer

To invoice a customer in ERPNext, create a Sales Invoice from a sales order or delivery note, check the items and tax, and submit it. Then choose Create, then Payment on the submitted invoice to record the money received. ERPNext reduces the outstanding amount by what you allocate. If the invoice is wrong, make a credit note, or cancel and amend. This guide uses a fictional example.

Choose where the invoice starts

A Sales Invoice turns a sale into an amount the customer owes. When you submit it, ERPNext records the receivable, the income and the tax in the accounts. There are three common starting points:

  • From a Sales Order. Open a submitted order, choose Create, then Sales Invoice. You can invoice only the lines that are ready, and make several invoices from one order.
  • From a Delivery Note. This is the usual route once goods have been delivered.
  • Directly. Use this for a service, or a counter sale with no delivery note.

Source: ERPNext documentation: Sales Invoice.

Fictional example

Al Noor Office Furniture Trading LLC, a made-up company, sold 10 office chairs at AED 300 each to Marina Design Studio, also made up. The goods were delivered, so the invoice starts from the delivery note. Nothing here is a real invoice.

If you have not created the earlier records yet, follow the beginner tutorial first. New to the software? Read what ERPNext is.

Decide whether the invoice moves stock

The Update Stock option decides whether the invoice also records goods leaving the warehouse. Get this right, or stock will be counted twice.

When to use Update Stock
SituationUpdate Stock
Invoice made from a delivery note that already moved the stockOff
Counter sale or direct stock sale with no delivery noteOn, with the correct warehouse on every stock item
Service sale using non-stock itemsOff

Source: ERPNext documentation: Sales Invoice.

In our example the delivery note already reduced the stock of office chairs, so Update Stock stays off.

Check the invoice before you submit

Open the draft invoice and check each part:

  1. Customer. ERPNext fills the address, currency, price list and receivable account from the customer record.
  2. Posting date and due date. The posting date sets the accounting period. The payment due date drives ageing, so late invoices show as overdue.
  3. Items. Check quantity and rate for each row. Here: 10 chairs at AED 300.
  4. Taxes. Choose the Sales Taxes and Charges template. For UAE VAT, ERPNext provides default templates for 5%, zero-rated and exempt supplies, and the customer’s Tax Registration Number goes in its Tax ID field.

Source: ERPNext documentation: UAE and KSA VAT setup.

The invoice (fictional example)
LineAmount (AED)
10 office chairs at AED 3003,000
VAT at 5%150
Grand total3,150

Checkpoint: the grand total is AED 3,150. A draft invoice posts nothing, so you can still correct it.

Submit it

Submit the invoice. ERPNext now debits the customer receivable for the grand total and credits the income and the tax accounts. The invoice status shows the balance as unpaid and later as overdue, partly paid or paid.

Source: ERPNext documentation: Sales Invoice.

You can see the entries in the General Ledger, which lists every debit and credit created by submitted transactions. Records that are not submitted do not appear there.

Source: ERPNext documentation: General Ledger.

Submitting an invoice in ERPNext does not send it through the UAE e-invoicing network. That needs an accredited service provider and a connection to it. Our ERPNext e-invoicing guide explains how the two fit together, and the UAE e-invoicing guide covers the whole process.

Record the payment

On the submitted invoice, choose Create, then Payment. ERPNext opens a Payment Entry of the Receive type for the customer. Choose the mode of payment, enter the amount and allocate it to the invoice, then submit.

Source: ERPNext documentation: Payment Entry.

ERPNext debits your bank or cash account, credits Accounts Receivable and reduces the invoice’s outstanding amount. If you receive less than the full amount, allocate what you received. The rest stays outstanding. A payment you cannot match yet stays unallocated, and you can match it later with Payment Reconciliation.

Part payment (fictional example)
ItemAmount (AED)
Invoice grand total3,150
Payment received and allocated2,000
Outstanding1,150

Checkpoint: the invoice shows as partly paid, and the Accounts Receivable report shows AED 1,150 for the customer.

Source: ERPNext documentation: Accounts Receivable.

Fix a mistake

What you do depends on what went wrong:

  • A returned item or a refund. Open the original submitted invoice and choose Create, then Return / Credit Note. Check that Is Return (Credit Note) is on and that Return Against points to the original invoice. Suppose the studio sends back one chair. The credit note would be for AED 315, which is AED 300 plus AED 15 VAT. The resulting customer credit can then be refunded or applied to a later invoice.
  • A wrong rate. In ERPNext, a debit note adjusts the rate. For UAE e-invoices, the Ministry of Finance e-invoicing FAQ says debit notes are not permitted under UAE VAT legislation and corrections are made by credit note. Agree the route for an undercharge with your accountant and provider. See credit notes and e-invoice corrections.
  • A wrong draft. Edit it before submitting.
  • A wrong submitted invoice. Cancel it, which reverses its ledger effect, then amend it. First clear any linked payments, returns or stock entries.

Source: ERPNext documentation: Sales Return.

Source: ERPNext documentation: Sales Invoice.

Government source: MoF e-invoicing FAQ, policy answer on debit notes.

A return delivery note puts the goods back in stock, but it does not create a customer credit. You need the credit note for that.

This article explains the documented workflow. The example uses a fictional company and arithmetic only. It was not run on a live system. For a hands-on test, use a separate demo company and confirm each step against the ERPNext version you plan to run, as screens and button labels can differ between versions.

Prepared by the StarterKit team. Regulatory statements link to UAE government sources. Examples and suggested work plans are labelled separately; they do not determine your business’s legal or tax position. Check the linked decisions for the full conditions and later changes.