A Pricing Rule defines the discount/pricing rules that apply based on set conditions.
A Pricing Rule has many options using which you can control the pricing of an Item. Filters like quantity, date, groups, and other conditions can be set.
A Pricing Rule is somewhat similar to a Tax Rule.
Following are the few cases which can be addressed using Pricing Rule:
To have Discount and Price List Rate for an Item auto-applied, create Pricing Rules for it.
To access the Pricing Rule list, go to:
Home > Accounting > Pricing Rule
Before creating and using a Pricing Rule, it is advisable to create the following first:
5. For a single item, select Item Code and select the items. 6. If you want Pricing Rule to be applied on all the items, select 'Item Group' and select All Item Group (parent Item Group). 7. Set the discount/price to be applied. To know more, go to this section. 8. Save.
Setting a Warehouse here will cause the Pricing Rule to be applied only if the Item is selected from the Warehouse specified here.
Based on the attribute selected in the 'Apply On' field, you can set the Pricing Rule based on one of these:
In this table, you can select the specific Item/Item Group/Brand. For example, if you select Apply On 'Item Group' and select 'Raw Materials' in the table, this Pricing Rule will be applied only on Items that belong to the Group 'Raw Materials'.
UoM: The Pricing Rule will apply only if the UoM set here matches with the transaction.
In this field you can add a condition in python to check against field values in the transaction doctype, like shown below for Sales Invoice:
customer=='Customer Name' and status!='Overdue'
Please note that only single line python conditions will work, using fieldnames of the target doctype.
If you select two or more Items and set the Min and Max Quantity. The Pricing Rule will be applied only if the total sum of Items matches the set quantities. For example, you create a Pricing Rule on Item 1 and Item 2 and set the Min and Max Quantity as 30, the Pricing Rule will apply only if the total quantity is 30.
Enabling this options allows the Pricing Rule to be applied cumulatively. You need to set the 'Min Amt' and 'Max Amt' for this.
Consider a scenario where the Min Amt is 1,500 and Max Amt is 2,000. Now, if one transaction is created for 1,400 then Pricing Rule will not be applied. However, on creating a second invoice of amount 600, Pricing Rule will be applied. This happened since the total (cumulative) amount of the invoices added up to 2,000. Note that the discount will be applied only to the latest transaction that crosses the cumulative limit.
This can be useful to give discounts if a Customer buys an Item multiple times and you want to reward him with discounts/special prices.
This feature checks condition on first Item but applies rule on another Item.
For example, set Item1 and Item2 in the 'Apply Rule On' table and set 'Apply Rule On Other' on Item3. Now, if the transaction has Item1, Item2, and Item3, the Pricing Rule will apply on Item3 since the first two Items were present in the transaction.
Set whether the Pricing Rule is for Selling of Buying the Item.
Based on your selection you can set applicability to one of the following masters.
Specify minimum qty, maximum qty, minimum amount, or maximum amount of an Item when this Pricing Rule should be applied.
Note that if the quantity or amount falls short or exceeds the limits set here, the Pricing Rule will not be applied at all. However, it will be applied if you have enabled the options Mixed Conditions or Cumulative.
You can also set a date interval for when the Pricing Rule will be valid. This is useful for a sales promotion. On leaving the dates blank the Pricing Rule will not have any time frame limit.
Read adding margin for more details.
The actual rule to be applied is set in this section.
This is useful when the top distributor in the hierarchy decides the discount/rate to be applied and you are only validating if the Pricing Rule is applied correctly.
3. Discount Percentage can be applied for a specific Price List (Selling or Buying). To apply it for both, leave the 'For Price List' field blank.
4. Discount can also be set in terms of amount.
2. "Buy 2 quantities get 1 free quantity of the another item." To configure such type of rules. Set the Price or Product Discount as Product discount, untick the 'Same Item' checkbox and set the 'Free Item' and quantity.