diff --git a/crm/fcrm/doctype/crm_territory/crm_territory.json b/crm/fcrm/doctype/crm_territory/crm_territory.json
index 60b6b43f..bf7449bf 100644
--- a/crm/fcrm/doctype/crm_territory/crm_territory.json
+++ b/crm/fcrm/doctype/crm_territory/crm_territory.json
@@ -1,6 +1,7 @@
{
"actions": [],
"allow_rename": 1,
+ "autoname": "field:territory_name",
"creation": "2024-01-04 18:52:58.872535",
"doctype": "DocType",
"engine": "InnoDB",
@@ -22,7 +23,8 @@
"fieldtype": "Data",
"in_list_view": 1,
"label": "Territory Name",
- "reqd": 1
+ "reqd": 1,
+ "unique": 1
},
{
"default": "0",
@@ -87,10 +89,11 @@
"index_web_pages_for_search": 1,
"is_tree": 1,
"links": [],
- "modified": "2024-01-04 18:56:49.292276",
+ "modified": "2024-01-04 19:16:36.234887",
"modified_by": "Administrator",
"module": "FCRM",
"name": "CRM Territory",
+ "naming_rule": "By fieldname",
"nsm_parent_field": "parent_crm_territory",
"owner": "Administrator",
"permissions": [
diff --git a/frontend/src/components/Icons/TerritoryIcon.vue b/frontend/src/components/Icons/TerritoryIcon.vue
new file mode 100644
index 00000000..90c7075c
--- /dev/null
+++ b/frontend/src/components/Icons/TerritoryIcon.vue
@@ -0,0 +1,21 @@
+
+
+
diff --git a/frontend/src/components/Modals/OrganizationModal.vue b/frontend/src/components/Modals/OrganizationModal.vue
index 78a02245..0bfdab0f 100644
--- a/frontend/src/components/Modals/OrganizationModal.vue
+++ b/frontend/src/components/Modals/OrganizationModal.vue
@@ -66,6 +66,15 @@
placeholder="Add Annual Revenue"
/>
+
{
name: 'website',
value: _organization.value.website,
},
+ {
+ icon: TerritoryIcon,
+ name: 'territory',
+ value: _organization.value.territory,
+ },
{
icon: h(FeatherIcon, { name: 'dollar-sign', class: 'h-4 w-4' }),
name: 'annual_revenue',
diff --git a/frontend/src/pages/Contact.vue b/frontend/src/pages/Contact.vue
index b43e083e..d3a12d45 100644
--- a/frontend/src/pages/Contact.vue
+++ b/frontend/src/pages/Contact.vue
@@ -65,7 +65,7 @@
{{ contact.email_id }}
·
@@ -80,10 +80,7 @@
{{ contact.mobile_no }}
·
@@ -102,9 +99,7 @@
{{ contact.company_name }}
·
diff --git a/frontend/src/pages/Organization.vue b/frontend/src/pages/Organization.vue
index a9dd3208..49e2e3a7 100644
--- a/frontend/src/pages/Organization.vue
+++ b/frontend/src/pages/Organization.vue
@@ -66,7 +66,7 @@
{{ website(organization.website) }}
·
@@ -79,10 +79,20 @@
{{ organization.industry }}
+ ·
+
+
+
+ {{ organization.territory }}
+
+
·
@@ -95,11 +105,7 @@
{{ organization.annual_revenue }}
·
@@ -108,6 +114,7 @@
v-if="
organization.website ||
organization.industry ||
+ organization.territory ||
organization.annual_revenue
"
variant="ghost"
@@ -243,6 +250,7 @@ import LeadsListView from '@/components/ListViews/LeadsListView.vue'
import DealsListView from '@/components/ListViews/DealsListView.vue'
import ContactsListView from '@/components/ListViews/ContactsListView.vue'
import WebsiteIcon from '@/components/Icons/WebsiteIcon.vue'
+import TerritoryIcon from '@/components/Icons/TerritoryIcon.vue'
import EditIcon from '@/components/Icons/EditIcon.vue'
import CameraIcon from '@/components/Icons/CameraIcon.vue'
import LeadsIcon from '@/components/Icons/LeadsIcon.vue'