1
0
forked from test/crm

fix: made industry readonly & removed job title from organization

This commit is contained in:
Shariq Ansari 2023-11-13 13:36:56 +05:30
parent 1203990faf
commit 2f6b55e7bd
3 changed files with 16 additions and 26 deletions

View File

@ -20,6 +20,7 @@
"column_break_lcuv", "column_break_lcuv",
"lead_owner", "lead_owner",
"status", "status",
"job_title",
"source", "source",
"converted", "converted",
"organization_tab", "organization_tab",
@ -28,7 +29,6 @@
"no_of_employees", "no_of_employees",
"column_break_dbsv", "column_break_dbsv",
"website", "website",
"job_title",
"annual_revenue", "annual_revenue",
"industry", "industry",
"contact_tab", "contact_tab",
@ -185,11 +185,9 @@
"search_index": 1 "search_index": 1
}, },
{ {
"fetch_from": "organization.job_title",
"fieldname": "job_title", "fieldname": "job_title",
"fieldtype": "Data", "fieldtype": "Data",
"label": "Job Title", "label": "Job Title"
"read_only": 1
}, },
{ {
"fieldname": "organization_tab", "fieldname": "organization_tab",
@ -219,7 +217,7 @@
"image_field": "image", "image_field": "image",
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2023-11-09 12:44:18.770076", "modified": "2023-11-13 13:35:35.783003",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "FCRM", "module": "FCRM",
"name": "CRM Lead", "name": "CRM Lead",

View File

@ -11,7 +11,6 @@
"organization_logo", "organization_logo",
"column_break_pnpp", "column_break_pnpp",
"website", "website",
"job_title",
"annual_revenue", "annual_revenue",
"industry" "industry"
], ],
@ -43,11 +42,6 @@
"fieldname": "column_break_pnpp", "fieldname": "column_break_pnpp",
"fieldtype": "Column Break" "fieldtype": "Column Break"
}, },
{
"fieldname": "job_title",
"fieldtype": "Data",
"label": "Job Title"
},
{ {
"fieldname": "annual_revenue", "fieldname": "annual_revenue",
"fieldtype": "Currency", "fieldtype": "Currency",
@ -63,7 +57,7 @@
"image_field": "organization_logo", "image_field": "organization_logo",
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2023-11-06 15:28:26.610882", "modified": "2023-11-13 13:32:39.029742",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "FCRM", "module": "FCRM",
"name": "CRM Organization", "name": "CRM Organization",

View File

@ -206,7 +206,10 @@
:placeholder="field.placeholder" :placeholder="field.placeholder"
class="form-control" class="form-control"
> >
<template v-if="field.create" #footer="{ value, close }"> <template
v-if="field.create"
#footer="{ value, close }"
>
<div> <div>
<Button <Button
variant="ghost" variant="ghost"
@ -471,6 +474,14 @@ const detailSections = computed(() => {
tooltip: tooltip:
'It is a read only field, value is fetched from organization', 'It is a read only field, value is fetched from organization',
}, },
{
label: 'Industry',
type: 'read_only',
name: 'industry',
value: organization.value?.industry,
tooltip:
'It is a read only field, value is fetched from organization',
},
{ {
label: 'Job title', label: 'Job title',
type: 'data', type: 'data',
@ -488,19 +499,6 @@ const detailSections = computed(() => {
], ],
change: (data) => updateField('source', data.value), change: (data) => updateField('source', data.value),
}, },
{
label: 'Industry',
type: 'link',
name: 'industry',
placeholder: 'Select industry...',
options: [
{ label: 'Advertising', value: 'Advertising' },
{ label: 'Agriculture', value: 'Agriculture' },
{ label: 'Banking', value: 'Banking' },
{ label: 'Others', value: 'Others' },
],
change: (data) => updateField('industry', data.value),
},
], ],
}, },
{ {