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 ​

  1. Open the Territory tree.
  2. Select the parent territory, then select Add Child.
  3. Enter the Territory Name.
  4. Select Is Group only if this territory will hold other territories.
  5. 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 modelExample tree
National distributorCountry, region, state or metro area
International sellerGlobal region, country, sales zone
Local service companyService 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 ​

FieldWhat it does
Territory NameThe name in the tree, on customers, on transactions, and in reports.
Parent TerritoryThe group directly above this territory.
Is GroupAllows child territories. Select a leaf territory, not a group, on transactions.
Territory ManagerThe Sales Person responsible for the region. It is for reference only. It does not give the manager sales credit or record permissions.
TargetsSales 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 ​

  1. Open a leaf territory.
  2. In the Targets table, add a row.
  3. Select the Item Group and Fiscal Year.
  4. Enter the Target Qty, the Target Amount, or both.
  5. Select a Target Distribution to spread the target across months. Leave it empty to spread the target evenly.
  6. 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 ​

ProblemCause and fix
You cannot select a territory on a transactionThe territory is a group. Select a leaf territory.
A new customer gets the wrong territoryCheck Default Territory in Selling Settings, then correct the customer.
You cannot delete a territoryIt has child territories or is linked to customers, addresses, or transactions. Move or update those first, or rename the territory instead.
Monthly targets look wrongThe Monthly Distribution percentages must total 100.