Pricing Rule fields
This page lists the fields of the Pricing Rule form in the order the form shows them. To learn how to create a rule, see Apply Pricing Rules.
Applicability
| Field | Description |
|---|---|
| Title | Required. The name of the rule in lists and messages. |
| Disable | Stops the rule from applying. The rule and its history stay. |
| Apply On | Required. What the rule checks: Item Code (default), Item Group, Brand, or Transaction. |
| Price or Product Discount | Required. Price gives a rate, discount, or margin. Product adds a free item. |
| Warehouse | Applies the rule only to rows from this warehouse. Not shown for Transaction. |
| Apply Rule On Item Code / Item Group / Brand | The table of Items, Item Groups, or Brands that the rule covers. The table matches Apply On. A table cannot list the same value twice, or an Item template together with its variant. |
| Mixed Conditions | Checks the quantity and amount of all rows of the covered Items together. Not shown for Transaction. Cannot be used with Is Recursive. |
| Is Cumulative | Adds the quantity and amount of earlier transactions in the date range before it checks the limits. Needs Valid From and Valid Up To. Not shown for Transaction. |
| Coupon Code Based | Applies the rule only when the transaction has a matching Coupon Code. |
Discount on Other Item
Shown when Apply On is not Transaction and Mixed Conditions is clear.
| Field | Description |
|---|---|
| Apply Rule On Other | Gives the discount on another Item, Item Group, or Brand than the one that meets the condition: Item Code, Item Group, or Brand. |
| Item Code / Item Group / Brand | The other Item, Item Group, or Brand that gets the discount. Required when Apply Rule On Other is set. |
Party Information
| Field | Description |
|---|---|
| Selling | Applies the rule to sales transactions. |
| Buying | Applies the rule to purchase transactions. At least one of Selling and Buying is required. |
| Applicable For | Limits the rule to one party dimension: Customer, Customer Group, Territory, Sales Partner, Campaign (these need Selling), Supplier, or Supplier Group (these need Buying). |
| Customer, Customer Group, Territory, Sales Partner, Campaign, Supplier, Supplier Group | The party. Only the field that matches Applicable For is shown, and it is required. |
Quantity and Amount
| Field | Description |
|---|---|
| Min Qty (As Per Stock UOM) | The lowest quantity, in the stock UOM, for the rule to apply. |
| Max Qty (As Per Stock UOM) | The highest quantity. 0 means no upper limit. Cannot be lower than Min Qty. |
| Min Amt | The lowest amount for the rule to apply. |
| Max Amt | The highest amount. 0 means no upper limit. Cannot be lower than Min Amt. |
Product Discount Scheme
Shown when Price or Product Discount is Product.
| Field | Description |
|---|---|
| Same Item | The free item is the Item that meets the condition. If Free Item is blank and Mixed Conditions is clear, ERPNext selects Same Item on save. |
| Free Item | The Item to give. Required with Mixed Conditions. |
| Qty | The free quantity. |
| Free Item Rate | The rate of the free item. 0 makes it free. |
| UOM | The UOM of the free quantity. |
| Round Free Qty | Rounds a free quantity that is a fraction. |
| Don't Enforce Free Item Qty | Lets users change or remove the free item in the transaction. |
| Is Recursive | Gives the free quantity again for every Recurse Every quantity. Example: buy 1 get 1, buy 2 get 2. |
| Recurse Every (As Per Transaction UOM) | The quantity that earns one free quantity. Required with Is Recursive. |
| Apply Recursion Over (As Per Transaction UOM) | The quantity that does not count toward recursion. Must not be more than Min Qty. |
Period Settings
| Field | Description |
|---|---|
| Valid From | The first date of the rule. Default: today. |
| Valid Up To | The last date of the rule. Blank means no end date. |
| Company | Applies the rule only to this company. Blank means all companies. |
| Currency | Required. The rule applies to transactions in this currency. |
Margin
| Field | Description |
|---|---|
| Margin Type | Percentage or Amount. Blank means no margin. |
| Margin Rate or Amount | The margin added to the price list rate. |
Price Discount Scheme
Shown when Price or Product Discount is Price.
| Field | Description |
|---|---|
| Rate or Discount | Required. Rate, Discount Percentage (default), or Discount Amount. |
| Apply Discount On | Grand Total (default) or Net Total. Shown for Transaction rules that are not Rate. |
| Rate | The rate that replaces the price list rate. Cannot be negative. |
| Discount Amount | The amount taken off the rate. |
| Discount Percentage | The percentage taken off the rate. Cannot be more than the Max Discount (%) of an Item in the rule. |
| For Price List | Applies the rule only to transactions with this price list. Its currency must be the rule Currency. Not shown for Rate. |
Dynamic Condition tab
| Field | Description |
|---|---|
| Condition | A one-line Python expression on the fields of the transaction, for example territory != 'All Territories'. The rule applies only when the expression is true. Use == to compare, not =. |
Advanced Settings tab
| Field | Description |
|---|---|
| Apply Multiple Pricing Rules | Lets this rule apply together with other matching rules. |
| Apply Discount on Discounted Rate | Applies this discount percentage to the rate after earlier discounts. Needs Priority higher than 1. Shown for Discount Percentage with Apply Multiple Pricing Rules. |
| Threshold for Suggestion (In Percentage) | When the quantity or amount is within this percentage of the minimum, ERPNext suggests that the user increase it. |
| Validate Applied Rule | ERPNext does not apply the rule. It only checks the discount, margin, or free item that the user enters. Shown for Price rules. |
| Rule Description | The message that ERPNext shows when the entered values do not match the rule. Shown with Validate Applied Rule. |
| Has Priority | Turns on Priority. Select it even for priority zero. |
| Priority | 1 to 20. When rules overlap, the higher number wins. |
| Promotional Scheme | Read-only. The Promotional Scheme that created the rule. |