Set up sales territories
A Territory is a region where you sell, for example a country, a state, or a sales zone. Territories group customers and sales for reports, and they can carry sales targets.
Territories form a tree. A group territory, such as United States, holds other territories. A leaf territory, such as New York Metro, is the one you select on customers and transactions.
Prerequisites
- Decide what the tree follows: countries, states, cities, or sales zones. Use one basis for the whole tree.
- To set targets, create the Item Groups, the Fiscal Year, and any Monthly Distribution first.
Create a territory
- Open the Territory tree.
- Select the parent territory, then select Add Child.
- Enter the Territory Name.
- Select Is Group only if this territory will hold other territories.
- Select Create New.
A tree such as country, then region, then metro area is easy to maintain. Two or three levels are enough for most companies.
| Business model | Example tree |
|---|---|
| National distributor | Country, region, state or metro area |
| International seller | Global region, country, sales zone |
| Local service company | Service region, city, route |
Do not mix geography, customer size, and salesperson names in one tree. Use customer groups for customer segments and sales persons for individual ownership.
Territory fields
| Field | What it does |
|---|---|
| Territory Name | The name in the tree, on customers, on transactions, and in reports. |
| Parent Territory | The group directly above this territory. |
| Is Group | Allows child territories. Select a leaf territory, not a group, on transactions. |
| Territory Manager | The Sales Person responsible for the region. It is for reference only. It does not give the manager sales credit or record permissions. |
| Targets | Sales targets for the territory. See the next section. |
Assign a territory to a customer
Select the leaf territory in the Territory field of the Customer. Sales documents fetch it from the customer. To set a default for new customers, set Default Territory in Selling Settings.
Set territory sales targets
- Open a leaf territory.
- In the Targets table, add a row.
- Select the Item Group and Fiscal Year.
- Enter the Target Qty, the Target Amount, or both.
- Select a Target Distribution to spread the target across months. Leave it empty to spread the target evenly.
- Save.
To compare targets with actual sales, run the Territory Target Variance Based On Item Group report. ERPNext counts sales by the territory on each submitted document, not by the Territory Manager. For more on targets, see Set sales targets.
Troubleshooting
| Problem | Cause and fix |
|---|---|
| You cannot select a territory on a transaction | The territory is a group. Select a leaf territory. |
| A new customer gets the wrong territory | Check Default Territory in Selling Settings, then correct the customer. |
| You cannot delete a territory | It has child territories or is linked to customers, addresses, or transactions. Move or update those first, or rename the territory instead. |
| Monthly targets look wrong | The Monthly Distribution percentages must total 100. |