cardinal

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.

TypeThe row's amount
On Net TotalRate percent of the net total
ActualThe amount you type
On Previous Row AmountRate percent of an earlier row's tax
On Previous Row TotalRate percent of an earlier row's running total
On Item QuantityRate 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.

Sales Taxes and Charges Template
title: GST 18
company: Acme Traders
taxes:
  - charge_type: On Net Total
    account_head: Output Tax - AT
    description: GST
    rate: 18

Pick 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:

ItemQtyRateAmount
A399.99299.97
B712.3486.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:

FieldExample
Item CodeW
Price ListStandard Selling
UOMNos
Rate150

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.

FieldChoice
Apply OnItem Code, Item Group or Brand (Transaction rules are stored but not applied yet)
Selling / BuyingWhich side it applies to
Applicable ForCustomer, Customer Group, Territory, Sales Partner, Campaign, Supplier or Supplier Group
Min QtyThe smallest quantity, in the stock UOM
Rate or DiscountRate, Discount Percentage or Discount Amount
Valid FromThe first date it applies
Priority1 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 fieldExample
Min Qty10
Max Qty49
Discount TypeDiscount Percentage
Discount Percentage5

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.

FieldChoice
Shipping Rule TypeSelling or Buying
Calculate Based OnFixed, Net Total or Net Weight
Shipping AmountThe charge, when Fixed
Shipping Rule ConditionsBands of From Value, To Value and Shipping Amount
Valid for CountriesLeave 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.

On this page