[Fix] Clears off the read-only fields in 'Primary Address and Contact Details' Section on blank link fields
This commit is contained in:
parent
24cae1cad6
commit
b664488d98
@ -42,6 +42,17 @@ frappe.ui.form.on("Customer", {
|
||||
}
|
||||
})
|
||||
},
|
||||
customer_primary_address: function(frm){
|
||||
if(!frm.doc.customer_primary_address){
|
||||
frm.doc.primary_address = ""
|
||||
}
|
||||
},
|
||||
customer_primary_contact: function(frm){
|
||||
if(!frm.doc.customer_primary_contact){
|
||||
frm.doc.mobile_no = "";
|
||||
frm.doc.email_id = "";
|
||||
}
|
||||
},
|
||||
|
||||
refresh: function(frm) {
|
||||
if(frappe.defaults.get_default("cust_master_name")!="Naming Series") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user