Version 6.x.x Source

Table Name: `tabSales Partner`

A third party distributor / dealer / commission agent / affiliate / reseller who sells the companies products for a commission.

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `partner_name` | Data | Sales Partner Name |
2 | `partner_type` | Select | Partner Type |
    Channel Partner
    Distributor
    Dealer
    Agent
    Retailer
    Implementation Partner
    Reseller
3 | `territory` | Link | Territory | Territory
4 | `column_break0` | Column Break |  |
5 | `commission_rate` | Float | Commission Rate |
6 | `address_contacts` | Section Break | Address & Contacts |
7 | `address_desc` | HTML | Address Desc |
8 | `address_html` | HTML | Address HTML |
9 | `column_break1` | Column Break |  |
10 | `contact_desc` | HTML | Contact Desc |
11 | `contact_html` | HTML | Contact HTML |
12 | `partner_target_details_section_break` | Section Break | Sales Partner Target |
13 | `targets` | Table | Targets | Target Detail
14 | `distribution_id` | Link | Target Distribution Select Monthly Distribution to unevenly distribute targets across months. | Monthly Distribution
15 | `website` | Section Break | Website |
16 | `show_in_website` | Check | Show In Website |
17 | `section_break_17` | Section Break |  |
18 | `logo` | Attach | Logo |
19 | `partner_website` | Data | Partner's Website |
20 | `column_break_20` | Column Break |  |
21 | `page_name` | Data | Page Name |
22 | `section_break_22` | Section Break |  |
23 | `introduction` | Text | Introduction |
24 | `description` | Text Editor | Description |
25 | `parent_website_route` | Read Only | Parent Website Route |

### Controller

#### erpnext.setup.doctype.sales_partner.sales_partner

### Class SalesPartner

Inherits from frappe.website.website_generator.WebsiteGenerator

autoname (self)

No docs

get_contacts (self, nm)

No docs

get_context (self, context)

No docs

onload (self)

Load address and contacts in `__onload`

validate (self)

No docs

#### Linked In:

- Address
- Contact
- Customer
- Delivery Note
- Pricing Rule
- Sales Invoice
- Sales Order
- SMS Center