brotherton-erpnext/erpnext/docs/current/models/setup/sales_person.md

8.6 KiB

Version 6.x.x
<a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/setup/doctype/sales_person"
	target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
<p><b>Table Name:</b> <code>tabSales Person</code></p>

All Sales Transactions can be tagged against multiple Sales Persons so that you can set and monitor targets.

Fields

    <tr class="info">
        <td>1</td>
        <td ><code>name_and_employee_id</code></td>
        <td >
            Section Break</td>
        <td >
            Name and Employee ID
            
        </td>
        <td>
            <pre>icon-user</pre>
        </td>
    </tr>
    
    <tr >
        <td>2</td>
        <td class="danger" title="Mandatory"><code>sales_person_name</code></td>
        <td >
            Data</td>
        <td >
            Sales Person Name
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>3</td>
        <td ><code>parent_sales_person</code></td>
        <td >
            Link</td>
        <td >
            Parent Sales Person
            <p class="text-muted small">
                Select company name first.</p>
        </td>
        <td>

Sales Person

        </td>
    </tr>
    
    <tr >
        <td>4</td>
        <td class="danger" title="Mandatory"><code>is_group</code></td>
        <td >
            Select</td>
        <td >
            Has Child Node
            
        </td>
        <td>
            <pre>

Yes No

    <tr >
        <td>5</td>
        <td ><code>cb0</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>6</td>
        <td class="danger" title="Mandatory"><code>employee</code></td>
        <td >
            Link</td>
        <td >
            Employee
            
        </td>
        <td>

Employee

        </td>
    </tr>
    
    <tr >
        <td>7</td>
        <td ><code>lft</code></td>
        <td >
            Int</td>
        <td class="text-muted" title="Hidden">
            lft
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>8</td>
        <td ><code>rgt</code></td>
        <td >
            Int</td>
        <td class="text-muted" title="Hidden">
            rgt
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>9</td>
        <td ><code>old_parent</code></td>
        <td >
            Data</td>
        <td class="text-muted" title="Hidden">
            old_parent
            
        </td>
        <td></td>
    </tr>
    
    <tr class="info">
        <td>10</td>
        <td ><code>target_details_section_break</code></td>
        <td >
            Section Break</td>
        <td >
            Sales Person Targets
            <p class="text-muted small">
                Set targets Item Group-wise for this Sales Person.</p>
        </td>
        <td>
            <pre>icon-bullseye</pre>
        </td>
    </tr>
    
    <tr >
        <td>11</td>
        <td ><code>targets</code></td>
        <td >
            Table</td>
        <td >
            Targets
            
        </td>
        <td>

Target Detail

        </td>
    </tr>
    
    <tr >
        <td>12</td>
        <td ><code>distribution_id</code></td>
        <td >
            Link</td>
        <td >
            Target Distribution
            <p class="text-muted small">
                Select Monthly Distribution to unevenly distribute targets across months.</p>
        </td>
        <td>

Monthly Distribution

        </td>
    </tr>
    
    <tr >
        <td>13</td>
        <td ><code>communications</code></td>
        <td >
            Table</td>
        <td class="text-muted" title="Hidden">
            Communications
            
        </td>
        <td>

Communication

        </td>
    </tr>
    
</tbody>
Sr Fieldname Type Label Options
<hr>
<h3>Controller</h3>
<h4>erpnext.setup.doctype.sales_person.sales_person</h4>






    
<h3 style="font-weight: normal;">Class <b>SalesPerson</b></h3>

<p style="padding-left: 30px;"><i>Inherits from frappe.utils.nestedset.NestedSet</i></h4>

<div class="docs-attr-desc"><p></p>
<p class="docs-attr-name">
    <a name="get_email_id" href="#get_email_id" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>get_email_id</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="on_update" href="#on_update" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>on_update</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate" href="#validate" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

<p class="docs-attr-name">
    <a name="validate_employee_id" href="#validate_employee_id" class="text-muted small">
        <i class="icon-link small" style="color: #ccc;"></i></a>
	<b>validate_employee_id</b>
    <i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>

</div>
<hr>






    <h4>Linked In:</h4>
    <ul>
    
		
        <li>

Maintenance Schedule Detail

        <li>

Maintenance Schedule Item

        <li>

Maintenance Visit Purpose

        <li>

Sales Person

        <li>

Sales Team

        <li>

Territory

    </ul>