mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
toggle display of contact info based on customer
This commit is contained in:
@@ -37,7 +37,9 @@ cur_frm.cscript.onload = function(doc, dt, dn) {
|
||||
if(!doc.posting_time) doc.posting_time = wn.datetime.get_cur_time()
|
||||
|
||||
if(doc.__islocal){
|
||||
hide_field(['customer_address','contact_person','customer_name','address_display','contact_display','contact_mobile','contact_email','territory','customer_group']);
|
||||
hide_field(['customer_address', 'contact_person', 'customer_name',
|
||||
'address_display', 'contact_display', 'contact_mobile',
|
||||
'contact_email', 'territory', 'customer_group']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user