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 ​

  1. On a Quotation or Sales Order, add the Item.
  2. Open the row with the pencil icon.
  3. Set Margin Type to Percentage or Amount.
  4. Enter the Margin Rate or Amount.
  5. Check Rate With Margin and Rate.
  6. Save.
Margin typeFormula
AmountRate = Price List Rate + margin amount
PercentageRate = 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 ​

  1. Open or create a pricing rule.
  2. Set the conditions, for example the Item Group, the customer group, and the dates.
  3. In the margin section, select the Margin Type and enter the Margin Rate or Amount.
  4. Save.
  5. 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 ​

ProblemCause and fix
The margin fields are hiddenThe row has no Price List Rate. Add an Item Price.
The pricing rule does not add the marginThe rule is disabled, expired, or its conditions do not match.
A different rule appliesCheck the rule priorities and overlapping conditions.