fix: added phone, no_of_employees & job_title field in deal
This commit is contained in:
parent
76725370a9
commit
91ed8c639b
@ -19,10 +19,15 @@
|
|||||||
"contacts_tab",
|
"contacts_tab",
|
||||||
"email",
|
"email",
|
||||||
"mobile_no",
|
"mobile_no",
|
||||||
|
"phone",
|
||||||
"contacts",
|
"contacts",
|
||||||
"others_tab",
|
"others_tab",
|
||||||
"naming_series",
|
"naming_series",
|
||||||
"status",
|
"status",
|
||||||
|
"section_break_sygz",
|
||||||
|
"no_of_employees",
|
||||||
|
"column_break_nwob",
|
||||||
|
"job_title",
|
||||||
"section_break_eepu",
|
"section_break_eepu",
|
||||||
"lead",
|
"lead",
|
||||||
"column_break_bqvs",
|
"column_break_bqvs",
|
||||||
@ -221,11 +226,36 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Source",
|
"label": "Source",
|
||||||
"options": "CRM Lead Source"
|
"options": "CRM Lead Source"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "no_of_employees",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"label": "No. of Employees",
|
||||||
|
"options": "1-10\n11-50\n51-200\n201-500\n501-1000\n1000+"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "section_break_sygz",
|
||||||
|
"fieldtype": "Section Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_nwob",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "job_title",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Job Title"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "phone",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Phone",
|
||||||
|
"options": "Phone"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-01-04 20:53:31.618792",
|
"modified": "2024-01-05 16:10:59.595577",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "FCRM",
|
"module": "FCRM",
|
||||||
"name": "CRM Deal",
|
"name": "CRM Deal",
|
||||||
|
|||||||
@ -45,6 +45,7 @@ class CRMDeal(Document):
|
|||||||
if not self.contacts:
|
if not self.contacts:
|
||||||
self.email = ""
|
self.email = ""
|
||||||
self.mobile_no = ""
|
self.mobile_no = ""
|
||||||
|
self.phone = ""
|
||||||
return
|
return
|
||||||
|
|
||||||
if len([contact for contact in self.contacts if contact.is_primary]) > 1:
|
if len([contact for contact in self.contacts if contact.is_primary]) > 1:
|
||||||
@ -56,11 +57,13 @@ class CRMDeal(Document):
|
|||||||
primary_contact_exists = True
|
primary_contact_exists = True
|
||||||
self.email = d.email.strip()
|
self.email = d.email.strip()
|
||||||
self.mobile_no = d.mobile_no.strip()
|
self.mobile_no = d.mobile_no.strip()
|
||||||
|
self.phone = d.phone.strip()
|
||||||
break
|
break
|
||||||
|
|
||||||
if not primary_contact_exists:
|
if not primary_contact_exists:
|
||||||
self.email = ""
|
self.email = ""
|
||||||
self.mobile_no = ""
|
self.mobile_no = ""
|
||||||
|
self.phone = ""
|
||||||
|
|
||||||
def update_organization(self):
|
def update_organization(self):
|
||||||
if self.organization:
|
if self.organization:
|
||||||
|
|||||||
@ -125,6 +125,7 @@ export function setupAssignees(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function setupCustomActions(data, obj) {
|
export function setupCustomActions(data, obj) {
|
||||||
|
if (!data._form_script) return []
|
||||||
let script = new Function(data._form_script + '\nreturn setupForm')()
|
let script = new Function(data._form_script + '\nreturn setupForm')()
|
||||||
let formScript = script(obj)
|
let formScript = script(obj)
|
||||||
data._customActions = formScript?.actions || []
|
data._customActions = formScript?.actions || []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user