Post discounts to a separate account ​

By default, ERPNext posts the net value of an invoice after discounts. Income or expense is reduced by the discount, and the discount does not show in the ledger. If your accounting policy needs gross sales and discounts as separate amounts, use one of two methods:

MethodWorks onUse when
Discount accountingSales InvoiceYou give item discounts or an additional discount, and want them in a discount account
Negative tax rowSales Invoice and Purchase InvoiceYou need a separate account for a whole-invoice discount, including discounts received from suppliers
  • A discount allowed is a discount that you give a customer. It is often an expense or contra-revenue account.
  • A discount received is a discount that a supplier gives you. It is often an income or contra-expense account.

Ask your accountant how to classify these accounts. Do not use both methods for the same discount: the discount is then counted twice.

Prerequisites ​

  • The discount accounts exist as ledger accounts of each company, for example Sales Discounts Allowed and Purchase Discounts Received.

Method 1: discount accounting for sales ​

Example: two phones at a price list rate of 699 each, with a 10% item discount and a 5% additional discount.

AccountDebitCredit
Debtors1,195.29
Sales1,398.00
Sales Discounts Allowed202.71

The 202.71 is the item discount (139.80) plus the additional discount (62.91).

Turn on discount accounting ​

  1. In Selling Settings, on the Advanced Features tab, select Enable discount accounting for selling.
  2. In Accounts Settings, on the Invoice and Billing tab, select Enable Discounts and Margin. This shows the discount fields on Item rows.

Set a default discount account on the Item ​

  1. Open the Item, and go to the Accounting tab.
  2. In Item Defaults, open the row of the company.
  3. Select the Default Discount Account.
  4. Save.

Create the invoice ​

  1. Create a Sales Invoice and add the Items.
  2. Open an Item row. In Discount and Margin, enter Discount (%) on Price List Rate with Margin or the Discount Amount.
  3. In the row's accounting details, check the Discount Account.
  4. For a discount on the whole invoice, open Additional Discount. Select Apply Additional Discount On (Grand Total or Net Total), enter the Additional Discount Percentage or Additional Discount Amount, and select the Discount Account.
  5. Submit, and select View > Accounting Ledger to check the discount entry.

Item discounts use the Price List Rate as the base. If you overwrite the Rate, ERPNext treats the difference from the price list rate as a discount.

Purchase Invoices have no discount account fields. For purchases, use method 2.

Method 2: negative tax row ​

A row in the Sales Taxes and Charges or Purchase Taxes and Charges table can deduct an amount and post it to its Account Head. Despite the table name, it is for any addition or deduction.

Example sales invoice: gross 1,398, a -10% row of -139.80, grand total 1,258.20. The ledger debits Debtors 1,258.20, debits Sales Discounts Allowed 139.80, and credits Sales 1,398.

On a Sales Invoice ​

  1. Create the Sales Invoice with the Items at their gross rates.
  2. In Sales Taxes and Charges, add a row and open it.
  3. Set Type to On Net Total.
  4. Set Account Head to the discount allowed account.
  5. Enter a negative Tax Rate, for example -10, and a Description.
  6. Check the grand total, submit, and check the ledger.

On a Purchase Invoice ​

  1. Create the Purchase Invoice with the Items at their gross rates.
  2. In Purchase Taxes and Charges, add a row and open it.
  3. Set Type to On Net Total, and set Account Head to the discount received account.
  4. Enter a negative Tax Rate, for example -10.
  5. Submit and check the ledger. For a gross purchase of 1,040, ERPNext credits the supplier 936 and credits Purchase Discounts Received 104.

For a fixed amount, use Type Actual with a negative amount. Save the row in a taxes and charges template if you use it often.

WARNING

If a Purchase Receipt was posted at the gross amount, a discount row on the Purchase Invoice does not change the stock value or clear Stock Received But Not Billed by itself. Check both the stock and the accounting ledgers.

The order of rows matters: later tax rows calculate on the running total, which already includes the discount row.

Pay the net amount ​

Create the Payment Entry for the invoice's outstanding amount (1,258.20 or 936 in the examples). The invoice already posted the discount. Do not deduct it again in the payment.

Troubleshooting ​

ProblemWhat to check
The discount row increases the totalThe Tax Rate must be negative.
The Discount Account field is not shownCheck Enable discount accounting for selling, and reload the invoice.
No separate discount entry is postedCheck the setting and the discount accounts on the Item row and the invoice.
The discount posts to the wrong accountCorrect the account on the draft. After submit, cancel and amend.
Tax is calculated on the wrong amountCheck the order, Type, and Reference Row # of the tax rows.