Add a margin to the list price
A margin raises an Item's selling rate above its Price List Rate. You can add it by hand on an Item row, or let a pricing rule add it under fixed conditions.
The margin is based on the Price List Rate, not on the purchase cost or the valuation rate.
Prerequisites
- An Item Price in the document's selling Price List. Without a Price List Rate, the margin fields do not appear.
Add a margin on one row
- On a Quotation or Sales Order, add the Item.
- Open the row with the pencil icon.
- Set Margin Type to Percentage or Amount.
- Enter the Margin Rate or Amount.
- Check Rate With Margin and Rate.
- Save.
| Margin type | Formula |
|---|---|
| Amount | Rate = Price List Rate + margin amount |
| Percentage | Rate = Price List Rate + (Price List Rate × margin % ÷ 100) |
Example: a Price List Rate of 1,000 with a 15% margin gives a rate of 1,150.
If the row also has a discount, ERPNext applies the discount to the rate with margin.
Add a margin automatically
- Open or create a pricing rule.
- Set the conditions, for example the Item Group, the customer group, and the dates.
- In the margin section, select the Margin Type and enter the Margin Rate or Amount.
- Save.
- Test the rule on a new Quotation.
When several rules match, ERPNext uses their priority. Give a specific rule a higher priority than a general one.
Margin in later documents
When you create a Sales Order from a Quotation, or an invoice from an order, ERPNext copies the rate. To warn or stop when the rate changes on the way, see Keep the same rate across the sales cycle.
Troubleshooting
| Problem | Cause and fix |
|---|---|
| The margin fields are hidden | The row has no Price List Rate. Add an Item Price. |
| The pricing rule does not add the margin | The rule is disabled, expired, or its conditions do not match. |
| A different rule applies | Check the rule priorities and overlapping conditions. |