Set up sales partners and commission ​

A Sales Partner is an outside business that brings you sales, for example a reseller, dealer, agent, or affiliate. ERPNext calculates the partner's commission on each sales document and reports partner sales against targets.

For your own employees, use sales persons instead.

Prerequisites ​

  • Enable tracking sales commissions is selected in Selling Settings. Without it, the Commission section is hidden on sales documents.
  • A Sales Partner Type, for example Reseller.
  • The agreed commission rate.

Create a sales partner ​

  1. Open the Sales Partner list and select Add Sales Partner.
  2. Enter the Sales Partner Name.
  3. Select the Partner Type and the Territory.
  4. Enter the default Commission Rate.
  5. Save.
  6. In the address and contact section, add the partner's address and contact.

Sales partner fields ​

FieldWhat it does
Sales Partner NameThe name on documents and reports.
Partner TypeA category of partner.
TerritoryThe partner's main region.
Commission RateThe default commission percentage on sales documents.
TargetsSales targets by Item Group and Fiscal Year. See Set sales targets.
Referral CodeA code that links website orders to the partner.
Show In WebsitePublishes the partner on your website, with the Route, Logo, Partner website, Introduction, and Description.

Record commission on a sale ​

  1. On a Sales Order, Delivery Note, or Sales Invoice, open the Commission section.
  2. Select the Sales Partner. ERPNext fetches the Commission Rate.
  3. Check the Amount Eligible for Commission and the Total Commission.
  4. Submit the document.

A default Sales Partner on the customer fills this section on new documents.

The commission is a figure on the document only. ERPNext creates no expense, payable, or payment for it.

Track referrals ​

Enter a unique Referral Code on the partner. Give the partner a link to your website that carries the code, for example https://shop.example.com/?sp=APEX5. Test the full checkout first, and check that the resulting order shows the partner. How the code works depends on your website and e-commerce setup.

If you select Show In Website, publish only approved names, logos, and text. Do not publish rates, targets, or private contacts.

Review partner commission ​

ReportUse
Sales Partner Commission SummaryCommission for each submitted document, by partner. Filter by company, partner, document type, and dates.
Sales Partner Transaction SummaryPartner sales in detail, by Item.
Sales Partner Target Variance based on Item GroupTargets compared with actual sales.

Pay the commission ​

  1. Create a Supplier for the partner, if one does not exist.
  2. Check the approved commission for the period in Sales Partner Commission Summary.
  3. Book the commission with a Purchase Invoice from the supplier. Apply any tax withholding.
  4. Pay it with a Payment Entry.

Troubleshooting ​

ProblemCause and fix
The Commission section is missingSelect Enable tracking sales commissions in Selling Settings.
The commission is 0The Commission Rate or the Amount Eligible for Commission is 0.
The report is emptyThe documents are drafts, or the filters exclude them.
A referral did not set the partnerCheck the link, the website setup, and test in a new browser session.