Create a Sales Invoice ​

A Sales Invoice is the bill that you send to a customer. When you submit it, ERPNext records the amount that the customer owes (the receivable), the sales income, and the taxes in the General Ledger. If you select Update Stock, the same invoice also records the goods that leave the warehouse.

Create the invoice from a Sales Order or a Delivery Note when those documents exist. Create it directly for a service, or for an immediate sale of stock without a Delivery Note.

Prerequisites ​

Create a Sales Invoice directly ​

  1. Open the Sales Invoice list and select Add Sales Invoice.
  2. Select the Company and the Customer. ERPNext fetches the customer's address, contact, currency, price list, and receivable account from the defaults.
  3. Check the Posting Date and the Payment Due Date. The posting date sets the accounting period. The due date decides when the invoice becomes overdue.
  4. In the Items table, add each product or service, and check the quantity, rate, and amount.
  5. To see the fields that the table does not show, select the edit icon at the end of the row. Here you can change the UOM, the Income Account, the Cost Center, the Project, the Warehouse, serial and batch numbers, and deferred revenue settings.
  6. Select a Sales Taxes and Charges Template, or add rows to the Sales Taxes and Charges table. Check the tax amount and the Grand Total.
  7. In the Payments tab, check the Payment Schedule and allocate any customer advances.
  8. Check the addresses, the customer's purchase order details, the terms, and the totals.
  9. Save the invoice, and then select Submit. ERPNext posts the ledger entries.

In the Items table, a dot before the item code shows stock availability: green means in stock, red means out of stock.

Sales Invoice item row with the edit icon at the end of the row

Create a Sales Invoice from another document ​

When you create the invoice from an earlier document, ERPNext copies the items, quantities, rates, taxes, addresses, and references. It also updates the billed percentage of the earlier document.

From a Sales Order ​

Open a submitted Sales Order, select Create, and then select Sales Invoice. Keep only the lines and quantities that are ready to bill. You can create several invoices from one order. Learn more about partial fulfilment of a Sales Order.

From a Delivery Note ​

Open a submitted Delivery Note, select Create, and then select Sales Invoice. Use this route when the stock has already left the warehouse. Do not select Update Stock on the invoice, because the Delivery Note has already updated the stock ledger.

With Get Items From ​

In a new Sales Invoice, select Get Items From, and then select Sales Order, Quotation, Delivery Note, or Timesheet. Use Timesheet to bill hours and rates from Timesheets.

Choose the stock flow ​

SituationWhat to do
A Delivery Note already moved the stockCreate the invoice from the Delivery Note. Leave Update Stock clear.
A counter sale, or no Delivery NoteSelect Update Stock, and set the Warehouse on every stock item.
Services onlyUse non-stock items. Leave Update Stock clear.

With Update Stock selected, one document updates both the stock ledger and the General Ledger. Do not select it when a Delivery Note has recorded the same goods.

Update Stock checkbox on a Sales Invoice

For recurring bills, use a Subscription or Auto Repeat.

Important fields ​

FieldWhat it controls
CustomerThe party that you bill. It supplies the address, contact, currency, price list, tax, and account defaults.
Posting DateThe date on which the invoice affects the accounts. A closed accounting period or frozen accounts can block a past date.
Payment Due DateThe date used for ageing and for the Overdue status. A payment terms template can calculate it.
Currency and Exchange RateThe invoice currency and its conversion to the company currency.
Update StockPosts the item quantities to the stock ledger on submit.
Rate and Price List RateThe price that you charge, and the reference price from the price list. Pricing rules and discounts can change the rate.
Warehouse (item row)The source warehouse when Update Stock is selected.
Income Account (item row)The income account credited for the item. The default comes from the Item or the Item Group.
Cost Center, Project, and other accounting dimensionsTag the income for management reports. Learn more about accounting dimensions.
Sales Taxes and ChargesCalculates tax, shipping, or other charges, and posts each amount to its account.
Debit ToThe receivable account debited for the customer.
Payment Terms Template and Payment ScheduleSplit the invoice into due dates and amounts.
Allocate Advances Automatically (FIFO)Applies the customer's advance payments to the invoice, oldest first. Check every allocation before you submit.
Is Return (Credit Note)Makes the invoice a credit note. Learn how to create a credit note.
Is Rate Adjustment Entry (Debit Note)Issues a debit note against an existing Sales Invoice to change the rate. The quantity stays the same as on the original invoice.
Customer's Purchase Order and Customer's Purchase Order DateThe customer's order reference, for matching.
TermsThe terms and conditions printed on the invoice.

What happens when you submit ​

A normal invoice creates these General Ledger entries:

AccountDebitCredit
Customer's receivable accountGrand Total
Income accountsNet amount of the items
Tax and charge accountsTax or charge amount

If Update Stock is selected and perpetual inventory is enabled, ERPNext also posts stock ledger entries and the cost of goods sold. Learn more about the ledger effect of the selling cycle.

Collect payment and next steps ​

After you submit, the Create menu offers:

To see the ledger entries, select View, and then select Accounting Ledger.

To cancel an invoice, first cancel or unlink its payments, returns, and stock transactions.

Sales Invoice status ​

StatusMeaning
DraftSaved, not submitted. No ledger effect.
UnpaidSubmitted, with an outstanding amount that is not yet due.
OverdueThe due date has passed, and an amount is still outstanding.
Partly PaidA payment or credit reduced the outstanding amount, but did not clear it.
PaidThe outstanding amount is zero.
Credit Note IssuedA submitted credit note against the invoice brought its outstanding amount to zero.
ReturnThe document is itself a submitted credit note.
Unpaid and Discounted, Partly Paid and Discounted, Overdue and DiscountedThe invoice is part of a disbursed Invoice Discounting.
Internal TransferThe invoice is for an internal customer that represents the same company.
CancelledThe invoice was cancelled, and its ledger entries were reversed.

Troubleshooting ​

The Sales Order billed percentage does not change ​

The invoice items have no link to the Sales Order. Create the invoice from the Sales Order, or use Get Items From, so that each row keeps its Sales Order reference.

The customer paid, but the invoice is still outstanding ​

Check that the Payment Entry is submitted and allocated to this invoice. If the payment has no invoice reference, allocate it with Payment Reconciliation.

The tax or the rate is wrong ​

Check the customer's Tax Category, the Item Tax Template, the Sales Taxes and Charges Template, the price list, the pricing rules, and the posting date. Check the calculated rows before you submit.

ERPNext reports insufficient stock ​

Check Update Stock, the Warehouse on each row, the available and reserved quantity, and the serial or batch numbers. If a Delivery Note has already delivered the goods, clear Update Stock.

The invoice posts to the wrong account or cost center ​

Open the item row and check the Income Account, the Cost Center, the Project, and other accounting dimensions. Correct the defaults on the Item or the Item Group so that later invoices are right.

Frequently asked questions ​

Can I invoice a customer without a Sales Order? ​

Yes, unless Is Sales Order required to create Sales Invoice/Delivery Note? is set in Selling Settings.

Do I need a Delivery Note? ​

No. Use a Delivery Note when delivery needs its own control or proof. For a direct stock sale, select Update Stock on the invoice. Services need neither.

How do I correct a submitted invoice? ​

For a return or a reduction, create a credit note. For a rate increase, use Is Rate Adjustment Entry (Debit Note). To replace the invoice, cancel it and amend it after you handle the linked documents.

Can I bill in another currency? ​

Yes. Select the currency and check the exchange rate. The receivable account must allow that currency if you keep the balance in it.