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 ​

FieldDescription
TitleRequired. The name of the rule in lists and messages.
DisableStops the rule from applying. The rule and its history stay.
Apply OnRequired. What the rule checks: Item Code (default), Item Group, Brand, or Transaction.
Price or Product DiscountRequired. Price gives a rate, discount, or margin. Product adds a free item.
WarehouseApplies the rule only to rows from this warehouse. Not shown for Transaction.
Apply Rule On Item Code / Item Group / BrandThe 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 ConditionsChecks the quantity and amount of all rows of the covered Items together. Not shown for Transaction. Cannot be used with Is Recursive.
Is CumulativeAdds 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 BasedApplies 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.

FieldDescription
Apply Rule On OtherGives 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 / BrandThe other Item, Item Group, or Brand that gets the discount. Required when Apply Rule On Other is set.

Party Information ​

FieldDescription
SellingApplies the rule to sales transactions.
BuyingApplies the rule to purchase transactions. At least one of Selling and Buying is required.
Applicable ForLimits 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 GroupThe party. Only the field that matches Applicable For is shown, and it is required.

Quantity and Amount ​

FieldDescription
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 AmtThe lowest amount for the rule to apply.
Max AmtThe highest amount. 0 means no upper limit. Cannot be lower than Min Amt.

Product Discount Scheme ​

Shown when Price or Product Discount is Product.

FieldDescription
Same ItemThe 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 ItemThe Item to give. Required with Mixed Conditions.
QtyThe free quantity.
Free Item RateThe rate of the free item. 0 makes it free.
UOMThe UOM of the free quantity.
Round Free QtyRounds a free quantity that is a fraction.
Don't Enforce Free Item QtyLets users change or remove the free item in the transaction.
Is RecursiveGives 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 ​

FieldDescription
Valid FromThe first date of the rule. Default: today.
Valid Up ToThe last date of the rule. Blank means no end date.
CompanyApplies the rule only to this company. Blank means all companies.
CurrencyRequired. The rule applies to transactions in this currency.

Margin ​

FieldDescription
Margin TypePercentage or Amount. Blank means no margin.
Margin Rate or AmountThe margin added to the price list rate.

Price Discount Scheme ​

Shown when Price or Product Discount is Price.

FieldDescription
Rate or DiscountRequired. Rate, Discount Percentage (default), or Discount Amount.
Apply Discount OnGrand Total (default) or Net Total. Shown for Transaction rules that are not Rate.
RateThe rate that replaces the price list rate. Cannot be negative.
Discount AmountThe amount taken off the rate.
Discount PercentageThe percentage taken off the rate. Cannot be more than the Max Discount (%) of an Item in the rule.
For Price ListApplies the rule only to transactions with this price list. Its currency must be the rule Currency. Not shown for Rate.

Dynamic Condition tab ​

FieldDescription
ConditionA 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 ​

FieldDescription
Apply Multiple Pricing RulesLets this rule apply together with other matching rules.
Apply Discount on Discounted RateApplies 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 RuleERPNext does not apply the rule. It only checks the discount, margin, or free item that the user enters. Shown for Price rules.
Rule DescriptionThe message that ERPNext shows when the entered values do not match the rule. Shown with Validate Applied Rule.
Has PriorityTurns on Priority. Select it even for priority zero.
Priority1 to 20. When rules overlap, the higher number wins.
Promotional SchemeRead-only. The Promotional Scheme that created the rule.