mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 13:38:27 +00:00
[Fix] Clears off the read-only fields in 'Primary Address and Contact Details' Section on blank link fields
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user