Taxes and pricing
Tax rows and templates, price lists, item prices and pricing rules on ERP's selling and buying documents.
Every selling and buying document computes its totals the same way: item rates from the price list and pricing rules, then taxes on the net total, then rounding.
Tax rows
Each document has a taxes table. A row has a Type, an Account Head and a Rate.
| Type | The row's amount |
|---|---|
| On Net Total | Rate percent of the net total |
| Actual | The amount you type |
| On Previous Row Amount | Rate percent of an earlier row's tax |
| On Previous Row Total | Rate percent of an earlier row's running total |
| On Item Quantity | Rate times each item's quantity |
Tick "Is this Tax included in Basic Rate?" when your item rates already include the tax.
Tax templates
A Sales Taxes and Charges Template (or Purchase Taxes and Charges Template) saves rows you reuse. Its name is <Title> - <abbr>, so title GST 18 in Acme Traders becomes GST 18 - AT.
title: GST 18
company: Acme Traders
taxes:
- charge_type: On Net Total
account_head: Output Tax - AT
description: GST
rate: 18Pick it in a Sales Invoice's Sales Taxes and Charges Template field and the rows fill in. Each company may have one default template, and one enabled template per Tax Category.
A Tax Category labels a customer, supplier or address. A document takes it from the billing or shipping address, else the party, and the template that names that category becomes the document's template.
A Tax Rule picks the template for you. It matches on the party, its group, the Tax Category and the billing or shipping address. When several rules match, the one with the most matching filters wins, then the highest priority.
An Item Tax Template overrides the rate for one item: each row names a tax account and its Tax Rate for that item.
A worked total
A Sales Invoice with the GST 18 template and two rows:
| Item | Qty | Rate | Amount |
|---|---|---|---|
| A | 3 | 99.99 | 299.97 |
| B | 7 | 12.34 | 86.38 |
Net total 386.35, tax 69.54, Grand Total 455.89, Rounded Total 456.00. Item B's price is 12.345; the rate rounds to the currency's two places, 12.34, as ERPNext does.
Price lists and item prices
The setup wizard creates Standard Selling and Standard Buying. An Item Price row ties an item to a price list:
| Field | Example |
|---|---|
| Item Code | W |
| Price List | Standard Selling |
| UOM | Nos |
| Rate | 150 |
A document takes its price list from the party's Default Price List, on the Customer or Supplier. Without one, it uses Selling Settings' Default Price List or Buying Settings' Default Buying Price List. Picking an item then fills its rate, UOM and default warehouse.
Pricing rules
A Pricing Rule changes the rate or discount when its conditions fit.
| Field | Choice |
|---|---|
| Apply On | Item Code, Item Group or Brand (Transaction rules are stored but not applied yet) |
| Selling / Buying | Which side it applies to |
| Applicable For | Customer, Customer Group, Territory, Sales Partner, Campaign, Supplier or Supplier Group |
| Min Qty | The smallest quantity, in the stock UOM |
| Rate or Discount | Rate, Discount Percentage or Discount Amount |
| Valid From | The first date it applies |
| Priority | 1 to 20, used when two rules match |
Example: Apply On Item Group Products, Selling ticked, Applicable For Customer Acme Customer, Min Qty 10, Discount Percentage 5. An order for 10 or more of any product gets 5% off for that customer.
The row keeps the names of the rules it used. When two rules of the same priority match, ERP reports a conflict instead of picking one. A rule can also carry a condition, written as a Cardinal expression over the document's fields. A rule ticked Coupon Code Based applies only when the document carries the Coupon Code that names it.
Only price rules apply today. Product rules (a free item), mixed conditions, cumulative rules and Transaction rules are saved but not applied.
Promotional schemes
A Promotional Scheme holds several discount slabs over the same items, item groups or brands. On save it makes one Pricing Rule per slab, and one per party row when Applicable For lists customers, groups, territories, partners, campaigns or suppliers. Saving again updates those rules. Deleting the scheme deletes them.
| Slab field | Example |
|---|---|
| Min Qty | 10 |
| Max Qty | 49 |
| Discount Type | Discount Percentage |
| Discount Percentage | 5 |
A second slab with Min Qty 50 and Discount Percentage 10 gives bigger orders a bigger discount.
Shipping rules
A Shipping Rule adds a shipping charge to a selling or buying document as an Actual tax row on its Shipping Account.
| Field | Choice |
|---|---|
| Shipping Rule Type | Selling or Buying |
| Calculate Based On | Fixed, Net Total or Net Weight |
| Shipping Amount | The charge, when Fixed |
| Shipping Rule Conditions | Bands of From Value, To Value and Shipping Amount |
| Valid for Countries | Leave empty for every shipping country |
Example: a first row From Value 0, To Value 999, Shipping Amount 50, and a second row From Value 1000 with To Value blank and Shipping Amount 0. An order of 800 gets a 50 shipping row and an order of 1,500 gets none. Rows are checked in order. Only one row may leave To Value blank, and it matches any amount, so put it last. Bands may not overlap.