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
- Open the Sales Partner list and select Add Sales Partner.
- Enter the Sales Partner Name.
- Select the Partner Type and the Territory.
- Enter the default Commission Rate.
- Save.
- In the address and contact section, add the partner's address and contact.
Sales partner fields
| Field | What it does |
|---|---|
| Sales Partner Name | The name on documents and reports. |
| Partner Type | A category of partner. |
| Territory | The partner's main region. |
| Commission Rate | The default commission percentage on sales documents. |
| Targets | Sales targets by Item Group and Fiscal Year. See Set sales targets. |
| Referral Code | A code that links website orders to the partner. |
| Show In Website | Publishes the partner on your website, with the Route, Logo, Partner website, Introduction, and Description. |
Record commission on a sale
- On a Sales Order, Delivery Note, or Sales Invoice, open the Commission section.
- Select the Sales Partner. ERPNext fetches the Commission Rate.
- Check the Amount Eligible for Commission and the Total Commission.
- 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
| Report | Use |
|---|---|
| Sales Partner Commission Summary | Commission for each submitted document, by partner. Filter by company, partner, document type, and dates. |
| Sales Partner Transaction Summary | Partner sales in detail, by Item. |
| Sales Partner Target Variance based on Item Group | Targets compared with actual sales. |
Pay the commission
- Create a Supplier for the partner, if one does not exist.
- Check the approved commission for the period in Sales Partner Commission Summary.
- Book the commission with a Purchase Invoice from the supplier. Apply any tax withholding.
- Pay it with a Payment Entry.
Troubleshooting
| Problem | Cause and fix |
|---|---|
| The Commission section is missing | Select Enable tracking sales commissions in Selling Settings. |
| The commission is 0 | The Commission Rate or the Amount Eligible for Commission is 0. |
| The report is empty | The documents are drafts, or the filters exclude them. |
| A referral did not set the partner | Check the link, the website setup, and test in a new browser session. |