brotherton-erpnext/erpnext/docs/current/models/setup/territory.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/territory"
	target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
<p><b>Table Name:</b> <code>tabTerritory</code></p>

Classification of Customers by region

Fields

    <tr >
        <td>1</td>
        <td class="danger" title="Mandatory"><code>territory_name</code></td>
        <td >
            Data</td>
        <td >
            Territory Name
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>2</td>
        <td ><code>parent_territory</code></td>
        <td >
            Link</td>
        <td >
            Parent Territory
            
        </td>
        <td>

Territory

        </td>
    </tr>
    
    <tr >
        <td>3</td>
        <td class="danger" title="Mandatory"><code>is_group</code></td>
        <td >
            Select</td>
        <td >
            Has Child Node
            <p class="text-muted small">
                Only leaf nodes are allowed in transaction</p>
        </td>
        <td>
            <pre>

Yes No

    <tr >
        <td>4</td>
        <td ><code>cb0</code></td>
        <td class="info">
            Column Break</td>
        <td >
            
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>5</td>
        <td ><code>territory_manager</code></td>
        <td >
            Link</td>
        <td >
            Territory Manager
            <p class="text-muted small">
                For reference</p>
        </td>
        <td>

Sales Person

        </td>
    </tr>
    
    <tr >
        <td>6</td>
        <td ><code>lft</code></td>
        <td >
            Int</td>
        <td class="text-muted" title="Hidden">
            lft
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>7</td>
        <td ><code>rgt</code></td>
        <td >
            Int</td>
        <td class="text-muted" title="Hidden">
            rgt
            
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>8</td>
        <td ><code>old_parent</code></td>
        <td >
            Link</td>
        <td class="text-muted" title="Hidden">
            old_parent
            
        </td>
        <td>

Territory

        </td>
    </tr>
    
    <tr class="info">
        <td>9</td>
        <td ><code>target_details_section_break</code></td>
        <td >
            Section Break</td>
        <td >
            Territory Targets
            <p class="text-muted small">
                Set Item Group-wise budgets on this Territory. You can also include seasonality by setting the Distribution.</p>
        </td>
        <td></td>
    </tr>
    
    <tr >
        <td>10</td>
        <td ><code>targets</code></td>
        <td >
            Table</td>
        <td >
            Targets
            
        </td>
        <td>

Target Detail

        </td>
    </tr>
    
    <tr >
        <td>11</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>
    
</tbody>
Sr Fieldname Type Label Options
<hr>
<h3>Controller</h3>
<h4>erpnext.setup.doctype.territory.territory</h4>






    
<h3 style="font-weight: normal;">Class <b>Territory</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="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>

</div>
<hr>






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

C-Form Invoice Detail

        <li>

Customer

        <li>

Delivery Note

        <li>

Installation Note

        <li>

Lead

        <li>

Maintenance Schedule

        <li>

Maintenance Visit

        <li>

Opportunity

        <li>

POS Profile

        <li>

Pricing Rule

        <li>

Quotation

        <li>

Sales Invoice

        <li>

Sales Order

        <li>

Sales Partner

        <li>

Selling Settings

        <li>

Territory

        <li>

Warranty Claim

    </ul>